php-src/Zend/tests/special_name_error3.phpt
2014-09-23 00:57:00 +02:00

11 lines
179 B
PHP

--TEST--
Cannot use special class name as trait name
--FILE--
<?php
trait self {}
?>
--EXPECTF--
Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d