Esempio n. 1
0
 /**
  * Test no valid paths
  * 
  * @expectedException File_Mogile_Exception
  * @return void
  */
 public function testGetFileDataFail()
 {
     $filename = $this->getTestDataFile() . '1';
     $response = "OK path1={$filename}&paths=1";
     $this->object->expects($this->any())->method('socketRead')->will($this->returnValue($response));
     // Suppress a warning for the invalid file
     $result = @$this->object->getFileData('key');
 }