From 848650565171578e8b1a1786c3bd626263ac2513 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 18 Jun 2015 00:15:34 +0200 Subject: [PATCH] more tests --- Zend/tests/exception_018.phpt | 15 +++++++++++++++ Zend/tests/exception_019.phpt | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 Zend/tests/exception_018.phpt create mode 100644 Zend/tests/exception_019.phpt diff --git a/Zend/tests/exception_018.phpt b/Zend/tests/exception_018.phpt new file mode 100644 index 0000000000..aa39d53b67 --- /dev/null +++ b/Zend/tests/exception_018.phpt @@ -0,0 +1,15 @@ +--TEST-- +Testing throw exception doesn't crash with wrong params, variant 1 +--FILE-- + +--EXPECTF-- +Fatal error: Uncaught Error: Wrong parameters for Hello([string $message [, long $code [, Throwable $previous = NULL]]]) in %sexception_018.php:%d +Stack trace: +#0 %sexception_018.php(%d): Exception->__construct(Object(stdClass)) +#1 {main} + thrown in %sexception_018.php on line %d diff --git a/Zend/tests/exception_019.phpt b/Zend/tests/exception_019.phpt new file mode 100644 index 0000000000..4ebb077fe6 --- /dev/null +++ b/Zend/tests/exception_019.phpt @@ -0,0 +1,14 @@ +--TEST-- +Testing throw exception doesn't crash with wrong params, variant 2 +--FILE-- + +--EXPECTF-- +Fatal error: Uncaught Error: Wrong parameters for Exception([string $message [, long $code [, Throwable $previous = NULL]]]) in %sexception_019.php:%d +Stack trace: +#0 %sexception_019.php(%d): Exception->__construct(Object(stdClass)) +#1 {main} + thrown in %sexception_019.php on line %d -- 2.40.0