summaryrefslogtreecommitdiffstats
path: root/06897991d042115185fd98ff4e79569fbe51e0bf.patch
diff options
context:
space:
mode:
Diffstat (limited to '06897991d042115185fd98ff4e79569fbe51e0bf.patch')
-rw-r--r--06897991d042115185fd98ff4e79569fbe51e0bf.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/06897991d042115185fd98ff4e79569fbe51e0bf.patch b/06897991d042115185fd98ff4e79569fbe51e0bf.patch
new file mode 100644
index 0000000..ad74ac6
--- /dev/null
+++ b/06897991d042115185fd98ff4e79569fbe51e0bf.patch
@@ -0,0 +1,25 @@
+From 06897991d042115185fd98ff4e79569fbe51e0bf Mon Sep 17 00:00:00 2001
+From: USAMI Kenta <tadsan@zonu.me>
+Date: Thu, 11 Jul 2019 17:36:55 +0900
+Subject: [PATCH] Add temporary tests to detect class errors
+
+---
+ tests/immutable_override_008.phpt | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/tests/immutable_override_008.phpt b/tests/immutable_override_008.phpt
+index 8ecec38..7addcf3 100644
+--- a/tests/immutable_override_008.phpt
++++ b/tests/immutable_override_008.phpt
+@@ -35,6 +35,11 @@ var_dump($dt0->format("Y-m-d H:i:s.uP"));
+ foreach ($tests_args as $args) {
+ timecop_freeze($dt0);
+ $dt1 = call_user_func_array(array("DateTimeImmutable","createFromFormat"), $args);
++ if (!$dt1 instanceof DateTimeImmutable) {
++ // TODO: output an appropriate message
++ echo get_class($dt1), "\n";
++ }
++
+ var_dump($dt1->format("Y-m-d H:i:s.uP"));
+ while (true) {
+ /* test for equality between timecop_date_create_from_format() and date_create_from_format() */