public function getStatus() { try { return $this->getMongoClient()->connect(); } catch (StorageException $e) { return false; } }
/** * @covers Imbo\Storage\GridFS::getStatus */ public function testReturnsFalseWhenFetchingStatusAndTheHostnameIsNotCorrect() { $storage = new GridFS(array('server' => 'foobar')); $this->assertFalse($storage->getStatus()); }