summaryrefslogtreecommitdiff
path: root/Zend/tests/custom_assert_forbidden.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/custom_assert_forbidden.phpt')
-rw-r--r--Zend/tests/custom_assert_forbidden.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/custom_assert_forbidden.phpt b/Zend/tests/custom_assert_forbidden.phpt
new file mode 100644
index 0000000000..492a656f39
--- /dev/null
+++ b/Zend/tests/custom_assert_forbidden.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Defining a free-standing assert() function is deprecated
+--FILE--
+<?php
+
+namespace FooBar;
+
+function assert() {}
+
+?>
+--EXPECTF--
+Fatal error: Defining a custom assert() function is not allowed, as the function has special semantics in %s on line %d