php-src/tests/classes/constants_error_004.phpt

14 lines
220 B
PHP

--TEST--
Class constant whose initial value references a non-existent class
--FILE--
<?php
class C
{
const c1 = D::hello;
}
$a = new C();
?>
--EXPECTF--
Fatal error: Class 'D' not found in %s on line %d