1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/standard/tests/assert/assert_basic.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

23 lines
344 B
PHP

--TEST--
assert() - basic - check that assert runs when assert.active is set to 1.
--INI--
assert.active = 1
assert.warning = 0
assert.callback = f1
assert.bail = 0
assert.exception=0
--FILE--
<?php
function f1()
{
echo "f1 called\n";
}
var_dump($r2 = assert(0));
var_dump($r2 = assert(1));
?>
--EXPECT--
f1 called
bool(false)
bool(true)