summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_012.phpt
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2008-11-04 15:58:55 +0000
committerMarcus Boerger <helly@php.net>2008-11-04 15:58:55 +0000
commit7126de4912d9d4c7499deb1f9239980400aa7ec7 (patch)
treedc1bbf251d26825d2f65f599a6139044effdbc48 /Zend/tests/ns_012.phpt
parent6ca3ad3f41fd44b6f00adb9692d5503a33ecd290 (diff)
downloadphp-git-7126de4912d9d4c7499deb1f9239980400aa7ec7.tar.gz
- Next step in namespaces, using / as namespace separator.
Diffstat (limited to 'Zend/tests/ns_012.phpt')
-rwxr-xr-xZend/tests/ns_012.phpt32
1 files changed, 16 insertions, 16 deletions
diff --git a/Zend/tests/ns_012.phpt b/Zend/tests/ns_012.phpt
index ce16db1ab9..034f124924 100755
--- a/Zend/tests/ns_012.phpt
+++ b/Zend/tests/ns_012.phpt
@@ -2,34 +2,34 @@
012: Import in namespace and functions
--FILE--
<?php
-namespace test::ns1;
+namespace test\ns1;
function foo() {
echo __FUNCTION__,"\n";
}
-use test::ns1 as ns2;
+use test\ns1 as ns2;
use test as ns3;
foo();
bar();
-test::ns1::foo();
-test::ns1::bar();
-ns2::foo();
-ns2::bar();
-ns3::ns1::foo();
-ns3::ns1::bar();
+\test\ns1\foo();
+\test\ns1\bar();
+ns2\foo();
+ns2\bar();
+ns3\ns1\foo();
+ns3\ns1\bar();
function bar() {
echo __FUNCTION__,"\n";
}
--EXPECT--
-test::ns1::foo
-test::ns1::bar
-test::ns1::foo
-test::ns1::bar
-test::ns1::foo
-test::ns1::bar
-test::ns1::foo
-test::ns1::bar
+test\ns1\foo
+test\ns1\bar
+test\ns1\foo
+test\ns1\bar
+test\ns1\foo
+test\ns1\bar
+test\ns1\foo
+test\ns1\bar