Skip to content

Commit 30647d3

Browse files
committed
- MFB sync
1 parent e83481c commit 30647d3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

ext/reflection/tests/ReflectionFunction_getNamespaceName.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
ReflectionFunction::getNamespaceName()
33
--FILE--
44
<?php
5-
namespace A::B;
5+
namespace A\B;
66
function foo() {}
77

8-
$function = new ReflectionFunction('sort');
8+
$function = new \ReflectionFunction('sort');
99
var_dump($function->inNamespace());
1010
var_dump($function->getName());
1111
var_dump($function->getNamespaceName());
1212
var_dump($function->getShortName());
1313

14-
$function = new ReflectionFunction('A::B::foo');
14+
$function = new \ReflectionFunction('A\\B\\foo');
1515
var_dump($function->inNamespace());
1616
var_dump($function->getName());
1717
var_dump($function->getNamespaceName());
@@ -23,7 +23,7 @@ unicode(4) "sort"
2323
unicode(0) ""
2424
unicode(4) "sort"
2525
bool(true)
26-
unicode(9) "A::B::foo"
27-
unicode(4) "A::B"
26+
unicode(7) "A\B\foo"
27+
unicode(3) "A\B"
2828
unicode(3) "foo"
2929

ext/reflection/tests/reflectionClass_getNamespaceName.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
ReflectionClass::getNamespaceName()
33
--FILE--
44
<?php
5-
namespace A::B;
5+
namespace A\B;
66
class Foo {
77
}
88

9-
$function = new ReflectionClass('stdClass');
9+
$function = new \ReflectionClass('stdClass');
1010
var_dump($function->inNamespace());
1111
var_dump($function->getName());
1212
var_dump($function->getNamespaceName());
1313
var_dump($function->getShortName());
1414

15-
$function = new ReflectionClass('A::B::Foo');
15+
$function = new \ReflectionClass('A\\B\\Foo');
1616
var_dump($function->inNamespace());
1717
var_dump($function->getName());
1818
var_dump($function->getNamespaceName());
@@ -24,7 +24,7 @@ unicode(8) "stdClass"
2424
unicode(0) ""
2525
unicode(8) "stdClass"
2626
bool(true)
27-
unicode(9) "A::B::Foo"
28-
unicode(4) "A::B"
27+
unicode(7) "A\B\Foo"
28+
unicode(3) "A\B"
2929
unicode(3) "Foo"
3030

0 commit comments

Comments
 (0)