diff --git a/Tests/verifyTest.php b/Tests/verifyTest.php index 9279826..4f28342 100644 --- a/Tests/verifyTest.php +++ b/Tests/verifyTest.php @@ -33,6 +33,32 @@ class test_verify extends PHPUnit_Framework_TestCase $res = \verify::staticIs_datetimeSQL ("2017-13-55 22:55:17"); $this->assertSame ($res, false); } + public function test_is_dateSQL1 () + { + $verify = new \verify (); + $res = $verify->is_dateSQL ("2017-04-13"); + $this->assertSame ($res, true); + } + + public function test_is_dateSQL2 () + { + $verify = new \verify (); + $res = $verify->is_dateSQL ("2017-13-55"); + $this->assertSame ($res, false); + } + + public function test_staticIs_dateSQL1 () + { + $res = \verify::staticIs_dateSQL ("2017-04-13"); + $this->assertSame ($res, true); + } + + public function test_staticIs_dateSQL2 () + { + $res = \verify::staticIs_dateSQL ("2017-13-55"); + $this->assertSame ($res, false); + } + ///////////////// // NUMBERS //