/** * Test ERR response from mogile * * @expectedException File_Mogile_Exception * @return void */ public function testRequestFailFromMogile() { $response = "ERR fobar"; $this->object->expects($this->any())->method('socketRead')->will($this->returnValue($response)); $this->object->getDomains(); }