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

11 lines
197 B
PHP

--TEST--
Cannot use special class name as alias
--FILE--
<?php
use Foo\Bar as self;
?>
--EXPECTF--
Fatal error: Cannot use Foo\Bar as self because 'self' is a special class name in %s on line %d