From: Joe Watkins Date: Mon, 2 May 2016 17:48:50 +0000 (+0100) Subject: improve test coverage of multicatch X-Git-Tag: php-7.1.0alpha1~216 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e10735d07578fcf656e40d0a967a9bc557ad838;p=php improve test coverage of multicatch --- diff --git a/Zend/tests/try/exceptions.inc b/Zend/tests/try/exceptions.inc index 8a8777914c..68cb1c62f7 100644 --- a/Zend/tests/try/exceptions.inc +++ b/Zend/tests/try/exceptions.inc @@ -3,3 +3,4 @@ class Exception1 extends Exception {} class Exception2 extends Exception {} class Exception3 extends Exception {} +class Exception4 extends Exception {} diff --git a/Zend/tests/try/try_multicatch_006.phpt b/Zend/tests/try/try_multicatch_006.phpt new file mode 100644 index 0000000000..e4505f1b24 --- /dev/null +++ b/Zend/tests/try/try_multicatch_006.phpt @@ -0,0 +1,22 @@ +--TEST-- +Catch first exception in the second multicatch +--FILE-- + +--EXPECT-- +TRY +Exception3 +FINALLY + diff --git a/Zend/tests/try/try_multicatch_007.phpt b/Zend/tests/try/try_multicatch_007.phpt new file mode 100644 index 0000000000..aa073b0592 --- /dev/null +++ b/Zend/tests/try/try_multicatch_007.phpt @@ -0,0 +1,22 @@ +--TEST-- +Catch second exception in the second multicatch +--FILE-- + +--EXPECT-- +TRY +Exception4 +FINALLY +