Example #1
0
 /**
  */
 public function testCreateDatabase()
 {
     $dsn = array('host' => 'localhost', 'port' => 3306, 'database' => 'phigrate_test', 'user' => USER_MYSQL_DEFAULT, 'password' => PASSWORD_MYSQL_DEFAULT);
     $object = new Phigrate_Adapter_Mysql_Adapter($dsn, self::$_logger);
     $db = "users";
     $object->dropDatabase($db);
     $this->assertTrue($object->createDatabase($db));
     $this->assertFalse($object->createDatabase($db));
     $this->assertTrue($object->databaseExists($db));
 }