3 namespace Doctrine\Tests\DBAL\Functional\Schema;
5 use Doctrine\DBAL\Schema;
7 require_once __DIR__ . '/../../../TestInit.php';
9 class SqliteSchemaManagerTest extends SchemaManagerFunctionalTestCase
12 * SQLITE does not support databases.
14 * @expectedException \Doctrine\DBAL\DBALException
16 public function testListDatabases()
18 $this->_sm->listDatabases();
21 public function testCreateAndDropDatabase()
23 $path = dirname(__FILE__).'/test_create_and_drop_sqlite_database.sqlite';
25 $this->_sm->createDatabase($path);
26 $this->assertEquals(true, file_exists($path));
27 $this->_sm->dropDatabase($path);
28 $this->assertEquals(false, file_exists($path));
32 * @expectedException \Doctrine\DBAL\DBALException
34 public function testRenameTable()
36 $this->_sm->renameTable('oldname', 'newname');
39 public function testAutoincrementDetection()
41 $this->markTestSkipped(
42 'There is currently no reliable way to determine whether an SQLite column is marked as '
43 . 'auto-increment. So, while it does support a single identity column, we cannot with '
44 . 'certainty determine which it is.');