verify: add the tests to dateSQL

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3566 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-05-03 13:43:58 +00:00
parent 4ea1128595
commit a14590ceda

View File

@@ -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 //