xref: /php-src/Zend/tests/gh7771_1.phpt (revision 9e097822)
1--TEST--
2GH-7771 (Incorrect file/line for class constant expression exceptions)
3--FILE--
4<?php
5
6include __DIR__ . '/gh7771_1_definition.inc';
7
8new Foo();
9
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Class "NonExistent" not found in %sgh7771_1_definition.inc:4
13Stack trace:
14#0 %sgh7771_1.php(5): [constant expression]()
15#1 {main}
16  thrown in %sgh7771_1_definition.inc on line 4
17