Skip to content

Commit

Permalink
Add empty values to the date validator data provider
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <george@net-glue.co.uk>
  • Loading branch information
gsteel committed Sep 12, 2022
1 parent 01a9b41 commit 0663807
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/DateTest.php
Expand Up @@ -12,6 +12,7 @@

use function array_keys;
use function date_get_last_errors;
use function PHPUnit\Framework\assertFalse;
use function var_export;

/**
Expand Down Expand Up @@ -97,6 +98,10 @@ public function datesDataProvider(): array
[new DateTime(), null, true, false],
// invalid obj
[new stdClass(), null, false, false],
// Empty Values
[[], null, false, false],
['', null, false, false],
[null, null, false, false],
];
}

Expand Down

0 comments on commit 0663807

Please sign in to comment.