diff options
author | Anatol Belski <ab@php.net> | 2015-06-18 00:15:34 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-06-18 00:15:34 +0200 |
commit | 848650565171578e8b1a1786c3bd626263ac2513 (patch) | |
tree | 47cce49c6ddcd5b2775adef9b9d3141189c1f3fa /Zend/tests/exception_019.phpt | |
parent | 57940664a82ae6bf0e0d476e3a39059c5b7576a0 (diff) | |
download | php-git-848650565171578e8b1a1786c3bd626263ac2513.tar.gz |
more tests
Diffstat (limited to 'Zend/tests/exception_019.phpt')
-rw-r--r-- | Zend/tests/exception_019.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
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-- +<?php + +throw new Exception(new stdClass); + +?> +--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 |