tests/Doctrine/Tests/DBAL/Platforms/AbstractMySQLPlatformTestCase.php 1 location
|
@@ 85-101 (lines=17) @@
|
82 |
|
self::assertEquals('DROP TABLE foobar', $this->_platform->getDropTableSQL('foobar')); |
83 |
|
} |
84 |
|
|
85 |
|
public function testGeneratesTypeDeclarationForIntegers() |
86 |
|
{ |
87 |
|
self::assertEquals( |
88 |
|
'INT', |
89 |
|
$this->_platform->getIntegerTypeDeclarationSQL(array()) |
90 |
|
); |
91 |
|
self::assertEquals( |
92 |
|
'INT AUTO_INCREMENT', |
93 |
|
$this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true) |
94 |
|
)); |
95 |
|
self::assertEquals( |
96 |
|
'INT AUTO_INCREMENT', |
97 |
|
$this->_platform->getIntegerTypeDeclarationSQL( |
98 |
|
array('autoincrement' => true, 'primary' => true) |
99 |
|
)); |
100 |
|
} |
101 |
|
|
102 |
|
public function testGeneratesTypeDeclarationForStrings() |
103 |
|
{ |
104 |
|
self::assertEquals( |
tests/Doctrine/Tests/DBAL/Platforms/AbstractSQLServerPlatformTestCase.php 1 location
|
@@ 95-111 (lines=17) @@
|
92 |
|
self::assertEquals('DROP TABLE foobar', $this->_platform->getDropTableSQL('foobar')); |
93 |
|
} |
94 |
|
|
95 |
|
public function testGeneratesTypeDeclarationForIntegers() |
96 |
|
{ |
97 |
|
self::assertEquals( |
98 |
|
'INT', |
99 |
|
$this->_platform->getIntegerTypeDeclarationSQL(array()) |
100 |
|
); |
101 |
|
self::assertEquals( |
102 |
|
'INT IDENTITY', |
103 |
|
$this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true) |
104 |
|
)); |
105 |
|
self::assertEquals( |
106 |
|
'INT IDENTITY', |
107 |
|
$this->_platform->getIntegerTypeDeclarationSQL( |
108 |
|
array('autoincrement' => true, 'primary' => true) |
109 |
|
)); |
110 |
|
} |
111 |
|
|
112 |
|
public function testGeneratesTypeDeclarationsForStrings() |
113 |
|
{ |
114 |
|
self::assertEquals( |
tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php 1 location
|
@@ 143-159 (lines=17) @@
|
140 |
|
self::assertEquals('DROP TABLE foobar', $this->_platform->getDropTableSQL('foobar')); |
141 |
|
} |
142 |
|
|
143 |
|
public function testGeneratesTypeDeclarationForIntegers() |
144 |
|
{ |
145 |
|
self::assertEquals( |
146 |
|
'NUMBER(10)', |
147 |
|
$this->_platform->getIntegerTypeDeclarationSQL(array()) |
148 |
|
); |
149 |
|
self::assertEquals( |
150 |
|
'NUMBER(10)', |
151 |
|
$this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true) |
152 |
|
)); |
153 |
|
self::assertEquals( |
154 |
|
'NUMBER(10)', |
155 |
|
$this->_platform->getIntegerTypeDeclarationSQL( |
156 |
|
array('autoincrement' => true, 'primary' => true) |
157 |
|
)); |
158 |
|
} |
159 |
|
|
160 |
|
public function testGeneratesTypeDeclarationsForStrings() |
161 |
|
{ |
162 |
|
self::assertEquals( |
tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php 1 location
|
@@ 204-220 (lines=17) @@
|
201 |
|
self::assertSame('', $sql); |
202 |
|
} |
203 |
|
|
204 |
|
public function testGeneratesTypeDeclarationForIntegers() |
205 |
|
{ |
206 |
|
self::assertEquals( |
207 |
|
'INT', |
208 |
|
$this->_platform->getIntegerTypeDeclarationSQL(array()) |
209 |
|
); |
210 |
|
self::assertEquals( |
211 |
|
'SERIAL', |
212 |
|
$this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true) |
213 |
|
)); |
214 |
|
self::assertEquals( |
215 |
|
'SERIAL', |
216 |
|
$this->_platform->getIntegerTypeDeclarationSQL( |
217 |
|
array('autoincrement' => true, 'primary' => true) |
218 |
|
)); |
219 |
|
} |
220 |
|
|
221 |
|
public function testGeneratesTypeDeclarationForStrings() |
222 |
|
{ |
223 |
|
self::assertEquals( |