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