Skip to content
Snippets Groups Projects
Commit 52b3d726 authored by Demian Katz's avatar Demian Katz
Browse files

More tests.

parent 559cd65a
No related merge requests found
...@@ -79,6 +79,8 @@ class UtilsTest extends \VuFindTest\Unit\TestCase ...@@ -79,6 +79,8 @@ class UtilsTest extends \VuFindTest\Unit\TestCase
'1947-3' => '1947-03-01', '1947-3' => '1947-03-01',
'1973-02-31' => '1973-02-01', // illegal day '1973-02-31' => '1973-02-01', // illegal day
'1973-31-31' => '1973-01-01', // illegal month '1973-31-31' => '1973-01-01', // illegal month
'1964-zz' => '1964-01-01',
'1964-01-zz' => '1964-01-01',
); );
foreach ($tests as $in => $out) { foreach ($tests as $in => $out) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment