summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/zend_throw_exception_001.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lang/zend_throw_exception_001.phpt b/tests/lang/zend_throw_exception_001.phpt
new file mode 100644
index 0000000000..c8d3603e72
--- /dev/null
+++ b/tests/lang/zend_throw_exception_001.phpt
@@ -0,0 +1,14 @@
+--TEST--
+zend_throw_exception with NULL message
+--FILE--
+<?php
+assert_options(ASSERT_EXCEPTION, true);
+try {
+ $assert = 'assert';
+ $assert(false);
+} catch (AssertionError $assertionError) {
+ echo 'Done' . PHP_EOL;
+}
+?>
+--EXPECT--
+Done