xref: /php-src/Zend/tests/assert/expect_005.phpt (revision 482985ca)
1--TEST--
2test providing reason (pass)
3--INI--
4zend.assertions=1
5assert.exception=1
6--FILE--
7<?php
8try {
9    /* by passing we test there are no leaks upon success */
10    assert(true, "I require this to succeed");
11} catch (AssertionError $ex) {
12    var_dump($ex->getMessage());
13}
14var_dump(true);
15?>
16--EXPECT--
17bool(true)
18