xref: /PHP-8.2/Zend/tests/assert/expect_010.phpt (revision 482985ca)
1--TEST--
2test stack trace is correct from failed exception in extended class (parent implementing constructor)
3--INI--
4zend.assertions=1
5assert.exception=1
6--FILE--
7<?php
8class One {
9    public function __construct() {
10        assert(false);
11    }
12}
13class Two extends One {}
14
15new Two();
16?>
17--EXPECTF--
18Fatal error: Uncaught AssertionError: assert(false) in %sexpect_010.php:%d
19Stack trace:
20#0 %sexpect_010.php(%d): assert(false, 'assert(false)')
21#1 %sexpect_010.php(%d): One->__construct()
22#2 {main}
23  thrown in %sexpect_010.php on line %d
24