/** * @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()); }