Example #1
0
 public function testDropSchema()
 {
     $db = new Database($this->fsql, 'shazam', parent::$tempDir);
     $db->create();
     $schema = $db->defineSchema('testing');
     $schema2 = $db->defineSchema('stuff');
     $this->assertNotEmpty($db->listSchemas());
     $db->dropSchema('testing');
     $this->assertEquals(array('public', 'stuff'), $db->listSchemas());
 }