getStatus() public method

public getStatus ( )
コード例 #1
0
ファイル: GridFSTest.php プロジェクト: ASP96/imbo
 /**
  * @covers Imbo\Storage\GridFS::getStatus
  */
 public function testReturnsFalseWhenFetchingStatusAndTheHostnameIsNotCorrect()
 {
     $storage = new GridFS(array('server' => 'foobar'));
     $this->assertFalse($storage->getStatus());
 }
コード例 #2
0
ファイル: GridFSTest.php プロジェクト: sgulseth/imbo
 /**
  * @covers Imbo\Storage\GridFS::getStatus
  */
 public function testGetStatusWhenMongoIsConnectable()
 {
     $this->mongoClient->expects($this->once())->method('connect')->will($this->returnValue(true));
     $this->assertTrue($this->driver->getStatus());
 }