X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Fdbal%2Ftests%2FDoctrine%2FTests%2FDBAL%2FFunctional%2FSchema%2FSqliteSchemaManagerTest.php;fp=vendor%2Fdoctrine%2Fdbal%2Ftests%2FDoctrine%2FTests%2FDBAL%2FFunctional%2FSchema%2FSqliteSchemaManagerTest.php;h=2dccb511e0a8beed29d046048300ebbb4d7b73a0;hb=8b04b2d11798dee4f3e1358e4f43e97a6df851f6;hp=0000000000000000000000000000000000000000;hpb=73568cf05a785a45f94ca3f2351d9e07bf917958;p=zf2.biz%2Fapplication_blanche.git diff --git a/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Functional/Schema/SqliteSchemaManagerTest.php b/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Functional/Schema/SqliteSchemaManagerTest.php new file mode 100644 index 0000000..2dccb51 --- /dev/null +++ b/vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Functional/Schema/SqliteSchemaManagerTest.php @@ -0,0 +1,46 @@ +_sm->listDatabases(); + } + + public function testCreateAndDropDatabase() + { + $path = dirname(__FILE__).'/test_create_and_drop_sqlite_database.sqlite'; + + $this->_sm->createDatabase($path); + $this->assertEquals(true, file_exists($path)); + $this->_sm->dropDatabase($path); + $this->assertEquals(false, file_exists($path)); + } + + /** + * @expectedException \Doctrine\DBAL\DBALException + */ + public function testRenameTable() + { + $this->_sm->renameTable('oldname', 'newname'); + } + + public function testAutoincrementDetection() + { + $this->markTestSkipped( + 'There is currently no reliable way to determine whether an SQLite column is marked as ' + . 'auto-increment. So, while it does support a single identity column, we cannot with ' + . 'certainty determine which it is.'); + } +} \ No newline at end of file