getStatus() 공개 메소드

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
 /**
  * @covers Imbo\Storage\GridFS::getStatus
  */
 public function testGetStatusWhenMongoIsConnectable()
 {
     $this->mongoClient->expects($this->once())->method('connect')->will($this->returnValue(true));
     $this->assertTrue($this->driver->getStatus());
 }