Skip to content

Commit 209ea3f

Browse files
committed
Fixed tests
1 parent 2dcd821 commit 209ea3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/date/tests/bug72963.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ foreach ($strings as $string) {
1212
echo "\nCovering string: ", addslashes($string), "\n\n";
1313

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

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

3838
object(DateTime)#1 (3) {
3939
["date"]=>
40-
string(26) "2016-08-08 13:52:31.000000"
40+
string(26) "2016-08-08 00:00:00.000000"
4141
["timezone_type"]=>
4242
int(3)
4343
["timezone"]=>
4444
string(3) "UTC"
4545
}
4646
object(DateTimeImmutable)#2 (3) {
4747
["date"]=>
48-
string(26) "2016-08-08 13:52:31.000000"
48+
string(26) "2016-08-08 00:00:00.000000"
4949
["timezone_type"]=>
5050
int(3)
5151
["timezone"]=>

0 commit comments

Comments
 (0)