_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 \Exception */ // This test is not correct. createSequence expects an object. // PHPUnit wrapping the PHP error in an exception hides this but it shows up // when the tests are run in the build (phing). /*public function testCreateSequence() { $this->_sm->createSequence('seqname', 1, 1); }*/ /** * @expectedException \Exception */ // This test is not correct. createForeignKey expects an object. // PHPUnit wrapping the PHP error in an exception hides this but it shows up // when the tests are run in the build (phing). /*public function testCreateForeignKey() { $this->_sm->createForeignKey('table', array()); }*/ /** * @expectedException \Exception */ public function testRenameTable() { $this->_sm->renameTable('oldname', 'newname'); } }