Update convert

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3522 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-04-13 12:17:57 +00:00
parent 001c2a041a
commit 267c260a0f
2 changed files with 13 additions and 7 deletions

View File

@@ -14,12 +14,12 @@ class test_convert extends PHPUnit_Framework_TestCase
public function test_convertDate2 ()
{
$this->setExpectedException ("Exception");
$res = \convert::convertDate ("2017-13-33", "Y-m-d", "d/m/Y", true);
$res = \convert::convertDate ("2017-13-33", "Y-m-d", "d/m/Y");
}
public function test_convertDate3 ()
{
$res = \convert::convertDate ("2017-13-33", "Y-m-d", "d/m/Y");
$res = \convert::convertDate ("2017-13-33", "Y-m-d", "d/m/Y", false);
$this->assertSame ($res, "2017-13-33");
}
}