summaryrefslogtreecommitdiff
path: root/Zend/tests/assert/expect_003.phpt
blob: 350fca6e57b0310ec11227599949582a3ecd098e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
test catching failed assertion
--INI--
zend.assertions=1
assert.exception=1
--FILE--
<?php
try {
    assert(false);
} catch (AssertionError $ex) {
    var_dump($ex->getMessage());
}
?>
--EXPECT--
string(13) "assert(false)"