xref: /PHP-8.1/Zend/tests/assert/expect_004.phpt (revision 482985ca)
1--TEST--
2test providing reason (fail)
3--INI--
4zend.assertions=1
5assert.exception=1
6--FILE--
7<?php
8try {
9    assert(false, "I require this to succeed");
10} catch (AssertionError $ex) {
11    var_dump($ex->getMessage());
12}
13?>
14--EXPECT--
15string(25) "I require this to succeed"
16