com php-src: Update test script: Zend/tests/bug70944.phpt
| From: | Xinchen Hui | Date: | Sat, 21 Nov 2015 13:01:51 +0000 |
| Subject: | com php-src: Update test script: Zend/tests/bug70944.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89947@lists.php.net to get a copy of this message | ||
Commit: 205e0ba81d84bf91bdae13039a77db5fa1344dd4
Author: Xinchen Hui <laruence@gmail.com> Sat, 21 Nov 2015 05:01:51 -0800
Parents: cbc71995a8e6e179f8a86a114dd29f80fb4a65cc
Branches: PHP-5.6 PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=205e0ba81d84bf91bdae13039a77db5fa1344dd4
Log:
Update test script
Changed paths:
M Zend/tests/bug70944.phpt
Diff:
diff --git a/Zend/tests/bug70944.phpt b/Zend/tests/bug70944.phpt
index 7584384..192fd6d 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}"