summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2015-11-21 05:01:51 -0800
committerXinchen Hui <laruence@gmail.com>2015-11-21 05:01:51 -0800
commit205e0ba81d84bf91bdae13039a77db5fa1344dd4 (patch)
treeacc10e1e3ed56f9e855cea6b6a9e673bd7a68f4e
parentcbc71995a8e6e179f8a86a114dd29f80fb4a65cc (diff)
downloadphp-git-205e0ba81d84bf91bdae13039a77db5fa1344dd4.tar.gz
Update test script
-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}"