/** * Tests that this adapter can connect to the database, and that the status is properly * persisted. */ public function testDatabaseConnection() { $db = new Sqlite3(array('autoConnect' => false) + $this->_dbConfig); $this->assertTrue($db->connect()); $this->assertTrue($db->isConnected()); $this->assertTrue($db->disconnect()); $this->assertFalse($db->isConnected()); }
public function testEnabledFeatures() { $this->assertTrue(Sqlite3::enabled()); $this->assertTrue(Sqlite3::enabled('relationships')); $this->assertFalse(Sqlite3::enabled('arrays')); }