/** * @expectedException Apache_Solr_InvalidArgumentException */ public function testExtractFromUrlWithInvalidParams() { $extractUrl = "http://example.com"; // set a mock transport $mockTransport = $this->getMockHttpTransportInterface(); $fixture = new Apache_Solr_Service(); $fixture->setHttpTransport($mockTransport); $fixture->extractFromUrl($extractUrl, "invalid"); }