mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
16 lines
299 B
PHP
16 lines
299 B
PHP
--TEST--
|
|
assert() - basic - accept closures as callback.
|
|
--INI--
|
|
assert.active = 1
|
|
assert.warning = 1
|
|
assert.bail = 0
|
|
--FILE--
|
|
<?php
|
|
assert_options(ASSERT_CALLBACK, function () { echo "Hello World!\n"; });
|
|
assert(0);
|
|
?>
|
|
--EXPECTF--
|
|
Hello World!
|
|
|
|
Warning: assert(): assert(0) failed in %s on line %d
|