From 388c4e7436187d10327129b7e22a05fbec650b26 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 10 Mar 2015 09:09:16 +0100 Subject: [PATCH] added more exception tests --- Zend/tests/exception_011.phpt | 18 ++++++++++++++++++ Zend/tests/exception_012.phpt | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 Zend/tests/exception_011.phpt create mode 100644 Zend/tests/exception_012.phpt diff --git a/Zend/tests/exception_011.phpt b/Zend/tests/exception_011.phpt new file mode 100644 index 0000000000..86e10262d1 --- /dev/null +++ b/Zend/tests/exception_011.phpt @@ -0,0 +1,18 @@ +--TEST-- +Test exception doesn't cause RSHUTDOWN bypass, variation 0 +--INI-- +assert.bail=1 +assert.exception=1 +--FILE-- + +--EXPECTF-- +Fatal error: Uncaught exception 'AssertionException' with message 'assert(false)' in %sexception_011.php:%d +Stack trace: +#0 %sexception_011.php(%d): assert(false, 'assert(false)') +#1 {main} + thrown in %sexception_011.php on line %d diff --git a/Zend/tests/exception_012.phpt b/Zend/tests/exception_012.phpt new file mode 100644 index 0000000000..91ea84b2e9 --- /dev/null +++ b/Zend/tests/exception_012.phpt @@ -0,0 +1,19 @@ +--TEST-- +Test exception doesn't cause RSHUTDOWN bypass, variation 1 +--INI-- +assert.bail=1 +assert.exception=1 +--FILE-- + +--EXPECTF-- +Fatal error: Uncaught exception 'AssertionException' with message 'assert(false)' in %sexception_012.php(%d) : runtime-created function:%d +Stack trace: +#0 %sexception_012.php(%d) : runtime-created function(%d): assert(false, 'assert(false)') +#1 %sexception_012.php(%d): __lambda_func() +#2 {main} + thrown in %sexception_012.php(%d) : runtime-created function on line %d -- 2.40.0