tests/Doctrine/Tests/DBAL/Platforms/AbstractMySQLPlatformTestCase.php 1 location
|
@@ 102-119 (lines=18) @@
|
99 |
|
)); |
100 |
|
} |
101 |
|
|
102 |
|
public function testGeneratesTypeDeclarationForStrings() |
103 |
|
{ |
104 |
|
$this->assertEquals( |
105 |
|
'CHAR(10)', |
106 |
|
$this->_platform->getVarcharTypeDeclarationSQL( |
107 |
|
array('length' => 10, 'fixed' => true) |
108 |
|
)); |
109 |
|
$this->assertEquals( |
110 |
|
'VARCHAR(50)', |
111 |
|
$this->_platform->getVarcharTypeDeclarationSQL(array('length' => 50)), |
112 |
|
'Variable string declaration is not correct' |
113 |
|
); |
114 |
|
$this->assertEquals( |
115 |
|
'VARCHAR(255)', |
116 |
|
$this->_platform->getVarcharTypeDeclarationSQL(array()), |
117 |
|
'Long string declaration is not correct' |
118 |
|
); |
119 |
|
} |
120 |
|
|
121 |
|
public function testPrefersIdentityColumns() |
122 |
|
{ |
tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php 1 location
|
@@ 156-173 (lines=18) @@
|
153 |
|
)); |
154 |
|
} |
155 |
|
|
156 |
|
public function testGeneratesTypeDeclarationsForStrings() |
157 |
|
{ |
158 |
|
$this->assertEquals( |
159 |
|
'CHAR(10)', |
160 |
|
$this->_platform->getVarcharTypeDeclarationSQL( |
161 |
|
array('length' => 10, 'fixed' => true) |
162 |
|
)); |
163 |
|
$this->assertEquals( |
164 |
|
'VARCHAR2(50)', |
165 |
|
$this->_platform->getVarcharTypeDeclarationSQL(array('length' => 50)), |
166 |
|
'Variable string declaration is not correct' |
167 |
|
); |
168 |
|
$this->assertEquals( |
169 |
|
'VARCHAR2(255)', |
170 |
|
$this->_platform->getVarcharTypeDeclarationSQL(array()), |
171 |
|
'Long string declaration is not correct' |
172 |
|
); |
173 |
|
} |
174 |
|
|
175 |
|
public function testPrefersIdentityColumns() |
176 |
|
{ |
tests/Doctrine/Tests/DBAL/Platforms/SqlitePlatformTest.php 1 location
|
@@ 229-246 (lines=18) @@
|
226 |
|
); |
227 |
|
} |
228 |
|
|
229 |
|
public function testGeneratesTypeDeclarationForStrings() |
230 |
|
{ |
231 |
|
$this->assertEquals( |
232 |
|
'CHAR(10)', |
233 |
|
$this->_platform->getVarcharTypeDeclarationSQL( |
234 |
|
array('length' => 10, 'fixed' => true)) |
235 |
|
); |
236 |
|
$this->assertEquals( |
237 |
|
'VARCHAR(50)', |
238 |
|
$this->_platform->getVarcharTypeDeclarationSQL(array('length' => 50)), |
239 |
|
'Variable string declaration is not correct' |
240 |
|
); |
241 |
|
$this->assertEquals( |
242 |
|
'VARCHAR(255)', |
243 |
|
$this->_platform->getVarcharTypeDeclarationSQL(array()), |
244 |
|
'Long string declaration is not correct' |
245 |
|
); |
246 |
|
} |
247 |
|
|
248 |
|
public function getGenerateIndexSql() |
249 |
|
{ |
tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php 1 location
|
@@ 221-238 (lines=18) @@
|
218 |
|
)); |
219 |
|
} |
220 |
|
|
221 |
|
public function testGeneratesTypeDeclarationForStrings() |
222 |
|
{ |
223 |
|
$this->assertEquals( |
224 |
|
'CHAR(10)', |
225 |
|
$this->_platform->getVarcharTypeDeclarationSQL( |
226 |
|
array('length' => 10, 'fixed' => true)) |
227 |
|
); |
228 |
|
$this->assertEquals( |
229 |
|
'VARCHAR(50)', |
230 |
|
$this->_platform->getVarcharTypeDeclarationSQL(array('length' => 50)), |
231 |
|
'Variable string declaration is not correct' |
232 |
|
); |
233 |
|
$this->assertEquals( |
234 |
|
'VARCHAR(255)', |
235 |
|
$this->_platform->getVarcharTypeDeclarationSQL(array()), |
236 |
|
'Long string declaration is not correct' |
237 |
|
); |
238 |
|
} |
239 |
|
|
240 |
|
public function getGenerateUniqueIndexSql() |
241 |
|
{ |