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