Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed May 26, 2022
1 parent 2dcd821 commit 209ea3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/date/tests/bug72963.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ foreach ($strings as $string) {
echo "\nCovering string: ", addslashes($string), "\n\n";

try {
$d1 = DateTime::createFromFormat('m/d/Y', $string);
$d1 = DateTime::createFromFormat('!m/d/Y', $string);
} catch (ValueError $v) {
echo $v->getMessage(), "\n";
}

try {
$d2 = DateTimeImmutable::createFromFormat('m/d/Y', $string);
$d2 = DateTimeImmutable::createFromFormat('!m/d/Y', $string);
} catch (ValueError $v) {
echo $v->getMessage(), "\n";
}
Expand All @@ -37,15 +37,15 @@ Covering string: 8/8/2016

object(DateTime)#1 (3) {
["date"]=>
string(26) "2016-08-08 13:52:31.000000"
string(26) "2016-08-08 00:00:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(3) "UTC"
}
object(DateTimeImmutable)#2 (3) {
["date"]=>
string(26) "2016-08-08 13:52:31.000000"
string(26) "2016-08-08 00:00:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
Expand Down

0 comments on commit 209ea3f

Please sign in to comment.