php-src/Zend/tests/custom_assert_forbidden.phpt
2019-01-29 11:10:47 +01:00

13 lines
258 B
PHP

--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