/** * @expectedException InvalidArgumentException */ public function testSetInvalidPortThrowsException() { $gearmanAdmin = new GearmanAdmin(); $gearmanAdmin->setPort('twelwe'); }