Esempio n. 1
0
 /**
  * Tests storeData()
  *
  * @return void
  */
 public function testStoreData()
 {
     $response = 'OK devid=2&fid=943794&path=http://127.0.0.1:7500/dev2/0/000/943/0000943794.fid';
     $this->object->expects($this->any())->method('socketRead')->will($this->returnValue($response));
     $this->object->expects($this->any())->method('curlExec')->will($this->returnValue(true));
     // Suppress warning from fopen()
     $result = $this->object->storeData('foobarkey', 'myclass', $this->fileData);
     $this->assertNull($result);
 }