summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/tests/bug70944.phpt18
1 files changed, 13 insertions, 5 deletions
diff --git a/Zend/tests/bug70944.phpt b/Zend/tests/bug70944.phpt
index 7584384a41..192fd6d501 100644
--- a/Zend/tests/bug70944.phpt
+++ b/Zend/tests/bug70944.phpt
@@ -10,7 +10,7 @@ try {
throw $e;
}
} catch (Exception $e) {
- var_dump($e->getMessage());
+ var_dump((string)$e);
}
try {
@@ -21,9 +21,17 @@ try {
throw new Exception("Dummy", 0, $e);
}
} catch (Exception $e) {
- var_dump($e->getMessage());
+ var_dump((string)$e);
}
?>
---EXPECT--
-string(3) "Foo"
-string(5) "Dummy"
+--EXPECTF--
+string(%d) "exception 'Exception' with message 'Foo' in %sbug70944.php:%d
+Stack trace:
+#0 {main}"
+string(%d) "exception 'Exception' with message 'Foo' in %sbug70944.php:%d
+Stack trace:
+#0 {main}
+
+Next exception 'Exception' with message 'Dummy' in %sbug70944.php:%d
+Stack trace:
+#0 {main}"