/** * @expectedException Apache_Solr_InvalidArgumentException */ public function testSetEmptyHost() { $fixture = new Apache_Solr_Service(); // should throw an invalid argument exception $fixture->setHost(""); }