Exemple #1
0
 /**
  * @expectedException \RuntimeException
  */
 public function testNonWritableFile()
 {
     file_put_contents('vfs://feeds/test_file', pack('CCC', 0xef, 0xbb, 0xbf) . 'I am test data.');
     chmod('vfs://feeds/test_file', 0444);
     $result = new FetcherResult('vfs://feeds/test_file');
     $result->getFilePath();
 }
 /**
  * @expectedException \RuntimeException
  */
 public function testGetFilePathNonExistentFile()
 {
     // Throws exception.
     $result = new FetcherResult('IDONTEXIST');
     $result->getFilePath();
 }