Jyxo\Input\ValidatorTest::testIsDateTime PHP Method

testIsDateTime() public method

Tests IsDateTime validator.
public testIsDateTime ( )
    public function testIsDateTime()
    {
        $good = ['1993-01-01 01:00:00', '2000-02-29 15:23:59', date('Y-m-d H:i:s')];
        $wrong = [23, '2009-02-29 01:00:00', '2009-02-28 24:00:00', '2009-02-28 23:60:00', '2009-02-28 23:59:60'];
        $this->executeTests(new Validator\IsDateTime(), $good, $wrong);
    }