summaryrefslogtreecommitdiff
path: root/Zend/tests/assert/expect_002.phpt
blob: 2e54b1a45902766e167978fe89972b596014aade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
test failing assertion
--INI--
zend.assertions=1
assert.exception=1
--FILE--
<?php
assert(false);
var_dump(true);
?>
--EXPECTF--
Fatal error: Uncaught exception 'AssertionException' with message 'assert(false)' in %sexpect_002.php:%d
Stack trace:
#0 %sexpect_002.php(%d): assert(false, 'assert(false)')
#1 {main}
  thrown in %sexpect_002.php on line %d