php-src/Zend/tests/ns_053.phpt

14 lines
209 B
Plaintext
Raw Normal View History

2007-08-24 13:50:52 +00:00
--TEST--
053: Run-time constant definition
--FILE--
<?php
2008-12-04 20:12:30 +00:00
namespace test\ns1;
2007-08-24 13:50:52 +00:00
2008-12-04 20:12:30 +00:00
define(__NAMESPACE__ . '\\NAME', basename(__FILE__));
2007-08-24 13:50:52 +00:00
echo NAME."\n";
2008-12-04 20:12:30 +00:00
echo \test\ns1\NAME."\n";
2007-08-24 13:50:52 +00:00
--EXPECT--
ns_053.php
ns_053.php
2008-12-04 20:12:30 +00:00