1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
--TEST--
assert() asserting multiple with callback
--INI--
assert.active = 1
assert.warning = 1
assert.bail = 0
assert.exception=1
--FILE--
<?php
assert_options(ASSERT_CALLBACK, function ($f) {});
try {
assert(false);
} catch (Throwable) {}
try {
assert(false);
} catch (Throwable) {}
try {
assert(false);
} catch (Throwable) {}
try {
assert(false);
} catch (Throwable) {}
try {
assert(false);
} catch (Throwable) {}
try {
assert(false);
} catch (Throwable) {}
try {
assert(false);
} catch (Throwable) {}
?>
DONE
--EXPECTF--
Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d
Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d
DONE
|