php-src/tests/classes/constants_error_005.phpt
2014-07-26 18:38:54 +02:00

12 lines
237 B
PHP

--TEST--
Error case: class constant as an encapsed containing a variable
--FILE--
<?php
class myclass
{
const myConst = "$myVar";
}
?>
--EXPECTF--
Fatal error: Constant expression contains invalid operations in %s on line %d