getStatus() public method

public getStatus ( )
Exemplo n.º 1
0
 /**
  * @covers Imbo\Storage\GridFS::getStatus
  */
 public function testReturnsFalseWhenFetchingStatusAndTheHostnameIsNotCorrect()
 {
     $storage = new GridFS(array('server' => 'foobar'));
     $this->assertFalse($storage->getStatus());
 }
Exemplo n.º 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());
 }