php-src/Zend/tests/self_class_const_outside_class.phpt
Nikita Popov 05166566db Fix declare encoding tests
Also add a test for bwoebi's last change.
2015-01-24 21:51:45 +01:00

9 lines
177 B
PHP

--TEST--
Accessing self::FOO outside a class
--FILE--
<?php
var_dump(self::FOO);
?>
--EXPECTF--
Fatal error: Cannot access self:: when no class scope is active in %s on line %d