/** * @expectedException InvalidArgumentException */ public function testSetInvalidTimeoutThrowsException() { $gearmanAdmin = new GearmanAdmin(); $gearmanAdmin->setTimeout('forever'); }