php-src/Zend/tests/ns_053.phpt

14 lines
209 B
Plaintext
Raw Normal View History

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