blob: 13a7e5415e1cd1cf9015a9932fb22b8356282fcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--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
|