/** * test drop database */ public function test_database_droppage() { $db = "test_db"; //create it $this->assertEquals(true, $this->adapter->create_database($db)); $this->assertEquals(true, $this->adapter->database_exists($db)); //drop it $this->assertEquals(true, $this->adapter->drop_database($db)); $this->assertEquals(false, $this->adapter->database_exists($db)); }
/** * Create a database * * @param string $name the name of the database * @param array $options * * @return boolean */ public function create_database($name, $options = null) { return $this->_adapter->create_database($name, $options); }