php-src/Zend/tests/ns_049.phpt
2008-12-04 20:12:30 +00:00

10 lines
160 B
PHP

--TEST--
049: __NAMESPACE__ constant and runtime names (php name)
--FILE--
<?php
const FOO = 0;
var_dump(constant(__NAMESPACE__ . "\\FOO"));
--EXPECT--
int(0)