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
|
@@ 147-163 (lines=17) @@
|
144 |
|
self::assertEquals(array('CREATE TABLE autoinc_table (id SERIAL NOT NULL)'), $this->_platform->getCreateTableSQL($table)); |
145 |
|
} |
146 |
|
|
147 |
|
public function testGeneratesTypeDeclarationForIntegers() |
148 |
|
{ |
149 |
|
self::assertEquals( |
150 |
|
'INT', |
151 |
|
$this->_platform->getIntegerTypeDeclarationSQL(array()) |
152 |
|
); |
153 |
|
self::assertEquals( |
154 |
|
'SERIAL', |
155 |
|
$this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true) |
156 |
|
)); |
157 |
|
self::assertEquals( |
158 |
|
'SERIAL', |
159 |
|
$this->_platform->getIntegerTypeDeclarationSQL( |
160 |
|
array('autoincrement' => true, 'primary' => true) |
161 |
|
)); |
162 |
|
} |
163 |
|
|
164 |
|
public function testGeneratesTypeDeclarationForStrings() |
165 |
|
{ |
166 |
|
self::assertEquals( |