/** * @expectedException \Inspekt\Exception */ public function testIsHostnameBadAllow3() { $input = '192.168.1.1'; $this->assertTrue(Inspekt::isHostname($input, 8)); }