/** * @covers ::load * @expectedException Exception */ public function testLoadException() { $cachedRemoteData = new CachedRemoteData($this->getNullItemPool(), 'file://' . __DIR__ . '/../test_file_missing.txt'); $cachedRemoteData->load(); }
/** * @return string * @throws Exception If error retrieving remote data */ public function getData() { return $this->cachedRemoteData->get(); }