‪TYPO3CMS  10.4
MockPlatform.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
18 use Doctrine\DBAL\DBALException;
19 use Doctrine\DBAL\Platforms\AbstractPlatform;
20 
21 class ‪MockPlatform extends AbstractPlatform
22 {
30  public function ‪getBlobTypeDeclarationSQL(array $field)
31  {
32  throw DBALException::notSupported(__METHOD__);
33  }
34 
42  public function ‪getBooleanTypeDeclarationSQL(array $columnDef)
43  {
44  }
45 
53  public function ‪getIntegerTypeDeclarationSQL(array $columnDef)
54  {
55  }
56 
64  public function ‪getBigIntTypeDeclarationSQL(array $columnDef)
65  {
66  }
67 
75  public function ‪getSmallIntTypeDeclarationSQL(array $columnDef)
76  {
77  }
78 
86  public function ‪_getCommonIntegerTypeDeclarationSQL(array $columnDef)
87  {
88  }
89 
97  public function ‪getVarcharTypeDeclarationSQL(array $field)
98  {
99  return 'DUMMYVARCHAR()';
100  }
101 
109  public function ‪getClobTypeDeclarationSQL(array $field)
110  {
111  return 'DUMMYCLOB';
112  }
113 
124  public function ‪getJsonTypeDeclarationSQL(array $field)
125  {
126  return 'DUMMYJSON';
127  }
128 
136  public function ‪getBinaryTypeDeclarationSQL(array $field)
137  {
138  return 'DUMMYBINARY';
139  }
140 
146  public function ‪getName()
147  {
148  return 'mock';
149  }
150 
155  {
156  }
157 
166  protected function ‪getVarcharTypeDeclarationSQLSnippet($length, $fixed)
167  {
168  }
169 
177  protected function ‪getReservedKeywordsClass()
178  {
179  return MockKeywordList::class;
180  }
181 }
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getBigIntTypeDeclarationSQL
‪string getBigIntTypeDeclarationSQL(array $columnDef)
Definition: MockPlatform.php:64
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks
Definition: InstantiatableAbstractRestrictionContainer.php:16
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getBooleanTypeDeclarationSQL
‪string getBooleanTypeDeclarationSQL(array $columnDef)
Definition: MockPlatform.php:42
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getVarcharTypeDeclarationSQL
‪string getVarcharTypeDeclarationSQL(array $field)
Definition: MockPlatform.php:97
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getName
‪string getName()
Definition: MockPlatform.php:146
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getBlobTypeDeclarationSQL
‪string void getBlobTypeDeclarationSQL(array $field)
Definition: MockPlatform.php:30
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getReservedKeywordsClass
‪string getReservedKeywordsClass()
Definition: MockPlatform.php:177
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getJsonTypeDeclarationSQL
‪string getJsonTypeDeclarationSQL(array $field)
Definition: MockPlatform.php:124
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform
Definition: MockPlatform.php:22
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getBinaryTypeDeclarationSQL
‪string getBinaryTypeDeclarationSQL(array $field)
Definition: MockPlatform.php:136
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getClobTypeDeclarationSQL
‪string getClobTypeDeclarationSQL(array $field)
Definition: MockPlatform.php:109
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getSmallIntTypeDeclarationSQL
‪string getSmallIntTypeDeclarationSQL(array $columnDef)
Definition: MockPlatform.php:75
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\initializeDoctrineTypeMappings
‪initializeDoctrineTypeMappings()
Definition: MockPlatform.php:154
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getVarcharTypeDeclarationSQLSnippet
‪string getVarcharTypeDeclarationSQLSnippet($length, $fixed)
Definition: MockPlatform.php:166
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\_getCommonIntegerTypeDeclarationSQL
‪string _getCommonIntegerTypeDeclarationSQL(array $columnDef)
Definition: MockPlatform.php:86
‪TYPO3\CMS\Core\Tests\Unit\Database\Mocks\MockPlatform\getIntegerTypeDeclarationSQL
‪string getIntegerTypeDeclarationSQL(array $columnDef)
Definition: MockPlatform.php:53