summaryrefslogtreecommitdiff
path: root/Zend/tests/assert/expect_009.phpt
blob: a41cba44f4e0afdb9787a261961adbcaed33c23f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
test stack trace is correct from failed exception in extended class
--INI--
zend.assertions=1
assert.exception=1
--FILE--
<?php
class One {
    public function __construct() {
    }
}
class Two extends One {
    public function __construct() {
        assert(false);
    }
}
new Two();
?>
--EXPECTF--
Fatal error: Uncaught AssertionException: assert(false) in %sexpect_009.php:%d
Stack trace:
#0 %sexpect_009.php(%d): assert(false, 'assert(false)')
#1 %sexpect_009.php(%d): Two->__construct()
#2 {main}
  thrown in %sexpect_009.php on line %d