php-src/Zend/tests/ns_042.phpt
2007-08-24 13:50:52 +00:00

23 lines
267 B
PHP

--TEST--
042: Import in namespace and constants
--FILE--
<?php
namespace test::ns1;
const FOO = "ok\n";
import test::ns1 as ns2;
import test as ns3;
echo FOO;
echo test::ns1::FOO;
echo ::test::ns1::FOO;
echo ns2::FOO;
echo ns3::ns1::FOO;
--EXPECT--
ok
ok
ok
ok
ok