getStatus() 공개 메소드

public getStatus ( )
예제 #1
0
파일: DoctrineTest.php 프로젝트: ASP96/imbo
 /**
  * @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());
 }