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

14 lines
209 B
PHP

--TEST--
053: Run-time constant definition
--FILE--
<?php
namespace test\ns1;
define(__NAMESPACE__ . '\\NAME', basename(__FILE__));
echo NAME."\n";
echo \test\ns1\NAME."\n";
--EXPECT--
ns_053.php
ns_053.php