public function connect()
{
if (!$this->_config['dsn']) {
$this->_config['dsn'] = $this->_dsn();
}
return parent::connect();
}
/** * Tests that this adapter can connect to the database, and that the status is properly * persisted. * * @return void */ public function testDatabaseConnection() { $db = new MySql(array('autoConnect' => false) + $this->_dbConfig); $this->assertTrue($db->connect()); $this->assertTrue($db->isConnected()); $this->assertTrue($db->disconnect()); $this->assertFalse($db->isConnected()); }