Jyxo\Input\ValidatorTest::testIsPhone PHP Метод

testIsPhone() публичный Метод

Tests IsPhone validator.
public testIsPhone ( )
    public function testIsPhone()
    {
        $good = ['112', '1188', '11233', '800123456', '800 02 02 02', '223456789', '+420223456789', '00420223456789', '223 456 789', '223 45 67 89'];
        $wrong = ['1', '22345678', '-420223456789', '+420800020202', '0420123456789'];
        $this->executeTests(new Validator\IsPhone(), $good, $wrong);
    }