/** * @expectedException Apache_Solr_InvalidArgumentException */ public function testExtractFromStringWithInvalidParams() { $extractFileData = "does not matter what it is"; // set a mock transport $mockTransport = $this->getMockHttpTransportInterface(); $fixture = new Apache_Solr_Service(); $fixture->setHttpTransport($mockTransport); $fixture->extractFromString($extractFileData, "invalid"); }