ImboUnitTest\Database\DoctrineTest::testGetStatusWhenDatabaseIsNotConnectedAndConnectThrowsAnException PHP Method

testGetStatusWhenDatabaseIsNotConnectedAndConnectThrowsAnException() public method

    public function testGetStatusWhenDatabaseIsNotConnectedAndConnectThrowsAnException()
    {
        $this->connection->expects($this->once())->method('isConnected')->will($this->returnValue(false));
        $this->connection->expects($this->once())->method('connect')->will($this->throwException(new PDOException()));
        $this->assertFalse($this->driver->getStatus());
    }