Skip to content

Commit 0689799

Browse files
committed
Add temporary tests to detect class errors
1 parent 085ab38 commit 0689799

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/immutable_override_008.phpt

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ var_dump($dt0->format("Y-m-d H:i:s.uP"));
3535
foreach ($tests_args as $args) {
3636
timecop_freeze($dt0);
3737
$dt1 = call_user_func_array(array("DateTimeImmutable","createFromFormat"), $args);
38+
if (!$dt1 instanceof DateTimeImmutable) {
39+
// TODO: output an appropriate message
40+
echo get_class($dt1), "\n";
41+
}
42+
3843
var_dump($dt1->format("Y-m-d H:i:s.uP"));
3944
while (true) {
4045
/* test for equality between timecop_date_create_from_format() and date_create_from_format() */

0 commit comments

Comments
 (0)