xref: /PHP-7.2/Zend/tests/assert/expect_003.phpt (revision 482985ca)
1--TEST--
2test catching failed assertion
3--INI--
4zend.assertions=1
5assert.exception=1
6--FILE--
7<?php
8try {
9    assert(false);
10} catch (AssertionError $ex) {
11    var_dump($ex->getMessage());
12}
13?>
14--EXPECT--
15string(13) "assert(false)"
16