From a14590cedafc8f3a571d007b81e0f9844f538c22 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 3 May 2017 13:43:58 +0000 Subject: [PATCH] verify: add the tests to dateSQL git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3566 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- Tests/verifyTest.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 //