Parameters for this driver:
-
(string) dbnameName of the database to connect to -
(string) userUsername to use when connecting -
(string) passwordPassword to use when connecting -
(string) hostHostname to use when connecting -
(string) driverWhich driver to use
/** * @covers Imbo\Storage\Doctrine::getStatus */ public function testGetStatusWhenDatabaseIsNotConnectedAndCanNotConnect() { $this->connection->expects($this->once())->method('isConnected')->will($this->returnValue(false)); $this->connection->expects($this->once())->method('connect')->will($this->returnValue(false)); $this->assertFalse($this->driver->getStatus()); }