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

12 lines
180 B
PHP

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