]> granicus.if.org Git - php/commitdiff
Improve test script for #69212
authorXinchen Hui <laruence@php.net>
Wed, 11 Mar 2015 00:19:34 +0000 (08:19 +0800)
committerXinchen Hui <laruence@php.net>
Wed, 11 Mar 2015 00:19:34 +0000 (08:19 +0800)
Zend/tests/bug69212.phpt

index 801073e2cab587e87ea5b4127cb98dace609803f..5f20faaf4eb0a9ad08089b65f1b6986b0b20bd8a 100644 (file)
@@ -21,7 +21,23 @@ try {
     echo "Caught!\n";
 }
 
+try {
+       $f = function () {};
+       $f->__invoke(do_throw());
+} catch (Exception $e) {
+       echo "Caught!\n";
+}
+
+try {
+       $t = new Test;
+       $f->__invoke($t->bar(Test::foo(do_throw())));
+} catch (Exception $e) {
+       echo "Caught!\n";
+}
+
 ?>
 --EXPECT--
 Caught!
 Caught!
+Caught!
+Caught!