/** * @covers Imbo\Storage\GridFS::getStatus */ public function testReturnsFalseWhenFetchingStatusAndTheHostnameIsNotCorrect() { $storage = new GridFS(array('server' => 'foobar')); $this->assertFalse($storage->getStatus()); }
/** * @covers Imbo\Storage\GridFS::getStatus */ public function testGetStatusWhenMongoIsConnectable() { $this->mongoClient->expects($this->once())->method('connect')->will($this->returnValue(true)); $this->assertTrue($this->driver->getStatus()); }