summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/reflectionClass_getNamespaceName.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/reflectionClass_getNamespaceName.phpt')
-rw-r--r--ext/reflection/tests/reflectionClass_getNamespaceName.phpt10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/reflection/tests/reflectionClass_getNamespaceName.phpt b/ext/reflection/tests/reflectionClass_getNamespaceName.phpt
index 1c46e0656b..4b511908fe 100644
--- a/ext/reflection/tests/reflectionClass_getNamespaceName.phpt
+++ b/ext/reflection/tests/reflectionClass_getNamespaceName.phpt
@@ -2,17 +2,17 @@
ReflectionClass::getNamespaceName()
--FILE--
<?php
-namespace A\B;
+namespace A::B;
class Foo {
}
-$function = new \ReflectionClass('stdClass');
+$function = new ReflectionClass('stdClass');
var_dump($function->inNamespace());
var_dump($function->getName());
var_dump($function->getNamespaceName());
var_dump($function->getShortName());
-$function = new \ReflectionClass('A\\B\\Foo');
+$function = new ReflectionClass('A::B::Foo');
var_dump($function->inNamespace());
var_dump($function->getName());
var_dump($function->getNamespaceName());
@@ -24,7 +24,7 @@ string(8) "stdClass"
string(0) ""
string(8) "stdClass"
bool(true)
-string(7) "A\B\Foo"
-string(3) "A\B"
+string(9) "A::B::Foo"
+string(4) "A::B"
string(3) "Foo"