/** * Test curl error * * @expectedException File_Mogile_Exception * @return void */ public function testStoreFileFailCurl() { $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(false)); $result = $this->object->storeFile('foobarkey', 'myclass', $this->getTestDataFile()); }