static::$dbDriverClass, ]); } protected function tearDownSeriesMiscellany() { } public function testInitializeDatabase() { static::dbRaze(static::$drv); $d = new Database(true); $this->assertSame(Database::SCHEMA_VERSION, $d->driverSchemaVersion()); } public function testManuallyInitializeDatabase() { static::dbRaze(static::$drv); $d = new Database(false); $this->assertSame(0, $d->driverSchemaVersion()); $this->assertTrue($d->driverSchemaUpdate()); $this->assertSame(Database::SCHEMA_VERSION, $d->driverSchemaVersion()); $this->assertFalse($d->driverSchemaUpdate()); } public function testCheckCharacterSetAcceptability() { $this->assertIsBool(Arsse::$db->driverCharsetAcceptable()); } public function testPerformMaintenance() { $this->assertTrue(Arsse::$db->driverMaintenance()); } }