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