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