xref: /PHP-8.2/Zend/tests/assert/expect_002.phpt (revision 482985ca)
1--TEST--
2test failing assertion
3--INI--
4zend.assertions=1
5assert.exception=1
6--FILE--
7<?php
8assert(false);
9var_dump(true);
10?>
11--EXPECTF--
12Fatal error: Uncaught AssertionError: assert(false) in %sexpect_002.php:%d
13Stack trace:
14#0 %sexpect_002.php(%d): assert(false, 'assert(false)')
15#1 {main}
16  thrown in %sexpect_002.php on line %d
17