diff options
author | Marcus Boerger <helly@php.net> | 2008-11-04 15:58:55 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2008-11-04 15:58:55 +0000 |
commit | 7126de4912d9d4c7499deb1f9239980400aa7ec7 (patch) | |
tree | dc1bbf251d26825d2f65f599a6139044effdbc48 /Zend/tests/ns_001.phpt | |
parent | 6ca3ad3f41fd44b6f00adb9692d5503a33ecd290 (diff) | |
download | php-git-7126de4912d9d4c7499deb1f9239980400aa7ec7.tar.gz |
- Next step in namespaces, using / as namespace separator.
Diffstat (limited to 'Zend/tests/ns_001.phpt')
-rwxr-xr-x | Zend/tests/ns_001.phpt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Zend/tests/ns_001.phpt b/Zend/tests/ns_001.phpt index 6821756a43..67715947af 100755 --- a/Zend/tests/ns_001.phpt +++ b/Zend/tests/ns_001.phpt @@ -2,7 +2,7 @@ 001: Class in namespace --FILE-- <?php -namespace test::ns1; +namespace test\ns1; class Foo { @@ -22,13 +22,13 @@ class Foo { $x = new Foo; $x->bar(); Foo::baz(); -$y = new test::ns1::Foo; +$y = new \test\ns1\Foo; $y->bar(); -test::ns1::Foo::baz(); +\test\ns1\Foo::baz(); --EXPECT-- -test::ns1::Foo -test::ns1::Foo -test::ns1::Foo -test::ns1::Foo -test::ns1::Foo -test::ns1::Foo +test\ns1\Foo +test\ns1\Foo +test\ns1\Foo +test\ns1\Foo +test\ns1\Foo +test\ns1\Foo |