Depending upon the value of $allow, Internet domain names, IP
addresses, and/or local network names are considered valid.
The default is HOST_ALLOW_ALL, which considers all of the
above to be valid.
/** * @expectedException \Inspekt\Exception */ public function testIsHostnameBadAllow3() { $input = '192.168.1.1'; $this->assertTrue(Inspekt::isHostname($input, 8)); }