diff --git a/tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php b/tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php index 24bad0b8a..667192100 100644 --- a/tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php +++ b/tests/Doctrine/Tests/DBAL/Platforms/MySqlPlatformTest.php @@ -14,6 +14,15 @@ class MySqlPlatformTest extends AbstractPlatformTestCase return new MysqlPlatform; } + public function testGenerateMixedCaseTableCreate() + { + $table = new \Doctrine\DBAL\Schema\Table("Foo"); + $table->createColumn("Bar", "integer"); + + $sql = $this->_platform->getCreateTableSql($table); + $this->assertEquals('CREATE TABLE Foo (Bar INT NOT NULL) ENGINE = InnoDB', array_shift($sql)); + } + public function getGenerateTableSql() { return 'CREATE TABLE test (id INT AUTO_INCREMENT NOT NULL, test VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) ENGINE = InnoDB';