Jyxo\Input\ValidatorTest::testIsIpV6 PHP 메소드

testIsIpV6() 공개 메소드

Tests IsIpV6 validator.
public testIsIpV6 ( )
    public function testIsIpV6()
    {
        $good = ['2001:0db8:0000:0000:0000:0000:1428:57ab', '2001:0db8:0000:0000:0000::1428:57ab', '2001:0db8:0:0:0:0:1428:57ab', '2001:0db8:0:0::1428:57ab', '2001:0db8::1428:57ab', '2001:db8::1428:57ab', '2001:0db8:85a3:08d3:1319:8a2e:0370:7344', '2001:0718:1c01:0016:0214:22ff:fec9:0ca5', '2001:718:1c01:16:214:22ff:fec9:ca5', 'ff02:0:0:0:0:0:0:1'];
        $wrong = ['xx02:db8::1428:57ab', '2001:0xx8:0:0:0:0:1428:57yy'];
        $this->executeTests(new Validator\IsIpV6(), $good, $wrong);
    }