diff options
author | Nikita Popov <nikic@php.net> | 2016-11-22 22:12:07 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-11-24 22:39:39 +0100 |
commit | 5af586bec52564e05d8c75ec533e132a9f06e749 (patch) | |
tree | cada51fab29d89f724338cdc2ed626ccbee1327d /ext/reflection/tests | |
parent | 895a82695c148f15df1ff6ab2aa9f55f9b3725ad (diff) | |
download | php-git-5af586bec52564e05d8c75ec533e132a9f06e749.tar.gz |
Remove more PHP 6 leftovers from tests
Diffstat (limited to 'ext/reflection/tests')
-rw-r--r-- | ext/reflection/tests/002.phpt | 14 | ||||
-rw-r--r-- | ext/reflection/tests/ReflectionClass_getMethod_001.phpt | 144 | ||||
-rw-r--r-- | ext/reflection/tests/ReflectionClass_getMethods_001.phpt | 96 | ||||
-rw-r--r-- | ext/reflection/tests/ReflectionClass_getProperties_001.phpt | 80 | ||||
-rw-r--r-- | ext/reflection/tests/ReflectionClass_getProperty_001.phpt | 88 | ||||
-rw-r--r-- | ext/reflection/tests/ReflectionClass_getProperty_003.phpt | 150 | ||||
-rw-r--r-- | ext/reflection/tests/ReflectionClass_getProperty_004.phpt | 150 |
7 files changed, 361 insertions, 361 deletions
diff --git a/ext/reflection/tests/002.phpt b/ext/reflection/tests/002.phpt index 833fed4aa5..cbd7319731 100644 --- a/ext/reflection/tests/002.phpt +++ b/ext/reflection/tests/002.phpt @@ -50,14 +50,14 @@ var_dump($r->bar); ===DONE=== --EXPECTF-- ReflectionMethodEx::__construct -%unicode|string%(26) "ReflectionFunctionAbstract" -%unicode|string%(7) "getName" -%unicode|string%(3) "xyz" +string(26) "ReflectionFunctionAbstract" +string(7) "getName" +string(3) "xyz" NULL Cannot set read-only property ReflectionMethodEx::$class Cannot set read-only property ReflectionMethodEx::$name -%unicode|string%(26) "ReflectionFunctionAbstract" -%unicode|string%(7) "getName" -%unicode|string%(3) "bar" -%unicode|string%(3) "baz" +string(26) "ReflectionFunctionAbstract" +string(7) "getName" +string(3) "bar" +string(3) "baz" ===DONE=== diff --git a/ext/reflection/tests/ReflectionClass_getMethod_001.phpt b/ext/reflection/tests/ReflectionClass_getMethod_001.phpt index 2f2d790f68..780b558cc7 100644 --- a/ext/reflection/tests/ReflectionClass_getMethod_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethod_001.phpt @@ -48,121 +48,121 @@ foreach($classes as $class) { --EXPECTF-- Reflecting on class pubf: --> Check for f(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "f" + ["class"]=> + string(4) "pubf" } --> Check for s(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "s" + ["class"]=> + string(4) "pubf" } --> Check for F(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "f" + ["class"]=> + string(4) "pubf" } --> Check for doesntExist(): Method doesntExist does not exist Reflecting on class subpubf: --> Check for f(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "f" + ["class"]=> + string(4) "pubf" } --> Check for s(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "s" + ["class"]=> + string(4) "pubf" } --> Check for F(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "f" + ["class"]=> + string(4) "pubf" } --> Check for doesntExist(): Method doesntExist does not exist Reflecting on class protf: --> Check for f(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "protf" } --> Check for s(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "protf" } --> Check for F(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "protf" } --> Check for doesntExist(): Method doesntExist does not exist Reflecting on class subprotf: --> Check for f(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "protf" } --> Check for s(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "protf" } --> Check for F(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "protf" } --> Check for doesntExist(): Method doesntExist does not exist Reflecting on class privf: --> Check for f(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "privf" } --> Check for s(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "privf" } --> Check for F(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "privf" } --> Check for doesntExist(): Method doesntExist does not exist Reflecting on class subprivf: --> Check for f(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "privf" } --> Check for s(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "privf" } --> Check for F(): object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "privf" } --> Check for doesntExist(): Method doesntExist does not exist diff --git a/ext/reflection/tests/ReflectionClass_getMethods_001.phpt b/ext/reflection/tests/ReflectionClass_getMethods_001.phpt index 1e11dee2f3..7d4b6774c2 100644 --- a/ext/reflection/tests/ReflectionClass_getMethods_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethods_001.phpt @@ -40,101 +40,101 @@ Reflecting on class pubf: array(2) { [0]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "f" + ["class"]=> + string(4) "pubf" } [1]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "s" + ["class"]=> + string(4) "pubf" } } Reflecting on class subpubf: array(2) { [0]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "f" + ["class"]=> + string(4) "pubf" } [1]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "s" + ["class"]=> + string(4) "pubf" } } Reflecting on class protf: array(2) { [0]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "protf" } [1]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "protf" } } Reflecting on class subprotf: array(2) { [0]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "protf" } [1]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "protf" } } Reflecting on class privf: array(2) { [0]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "privf" } [1]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "privf" } } Reflecting on class subprivf: array(2) { [0]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "f" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "f" + ["class"]=> + string(5) "privf" } [1]=> object(ReflectionMethod)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "privf" } } diff --git a/ext/reflection/tests/ReflectionClass_getProperties_001.phpt b/ext/reflection/tests/ReflectionClass_getProperties_001.phpt index cd4a29d450..ed0b160b93 100644 --- a/ext/reflection/tests/ReflectionClass_getProperties_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperties_001.phpt @@ -40,85 +40,85 @@ Reflecting on class pubf: array(2) { [0]=> object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "a" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "a" + ["class"]=> + string(4) "pubf" } [1]=> object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "s" + ["class"]=> + string(4) "pubf" } } Reflecting on class subpubf: array(2) { [0]=> object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "a" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "a" + ["class"]=> + string(4) "pubf" } [1]=> object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "s" + ["class"]=> + string(4) "pubf" } } Reflecting on class protf: array(2) { [0]=> object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "a" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "a" + ["class"]=> + string(5) "protf" } [1]=> object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "protf" } } Reflecting on class subprotf: array(2) { [0]=> object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "a" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "a" + ["class"]=> + string(5) "protf" } [1]=> object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "protf" } } Reflecting on class privf: array(2) { [0]=> object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "a" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "a" + ["class"]=> + string(5) "privf" } [1]=> object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "privf" } } Reflecting on class subprivf: diff --git a/ext/reflection/tests/ReflectionClass_getProperty_001.phpt b/ext/reflection/tests/ReflectionClass_getProperty_001.phpt index 9e174b749e..fca68ed30f 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_001.phpt @@ -61,85 +61,85 @@ foreach($classes as $class) { --EXPECTF-- Reflecting on class pubf: --> Check for s: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "s" + ["class"]=> + string(4) "pubf" } --> Check for a: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "a" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "a" + ["class"]=> + string(4) "pubf" } --> Check for A: Property A does not exist --> Check for doesntExist: Property doesntExist does not exist Reflecting on class subpubf: --> Check for s: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "s" + ["class"]=> + string(4) "pubf" } --> Check for a: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "a" - [%u|b%"class"]=> - %unicode|string%(4) "pubf" + ["name"]=> + string(1) "a" + ["class"]=> + string(4) "pubf" } --> Check for A: Property A does not exist --> Check for doesntExist: Property doesntExist does not exist Reflecting on class protf: --> Check for s: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "protf" } --> Check for a: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "a" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "a" + ["class"]=> + string(5) "protf" } --> Check for A: Property A does not exist --> Check for doesntExist: Property doesntExist does not exist Reflecting on class subprotf: --> Check for s: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "protf" } --> Check for a: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "a" - [%u|b%"class"]=> - %unicode|string%(5) "protf" + ["name"]=> + string(1) "a" + ["class"]=> + string(5) "protf" } --> Check for A: Property A does not exist --> Check for doesntExist: Property doesntExist does not exist Reflecting on class privf: --> Check for s: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "privf" } --> Check for a: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "a" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "a" + ["class"]=> + string(5) "privf" } --> Check for A: Property A does not exist --> Check for doesntExist: Property doesntExist does not exist Reflecting on class subprivf: --> Check for s: object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(1) "s" - [%u|b%"class"]=> - %unicode|string%(5) "privf" + ["name"]=> + string(1) "s" + ["class"]=> + string(5) "privf" } --> Check for a: Property a does not exist --> Check for A: Property A does not exist diff --git a/ext/reflection/tests/ReflectionClass_getProperty_003.phpt b/ext/reflection/tests/ReflectionClass_getProperty_003.phpt index 515d9860ba..16c0c306ba 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_003.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_003.phpt @@ -97,146 +97,146 @@ showInfo("doesntexist::doesntExist"); --EXPECTF-- --- (Reflecting on pubA) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubA" - [%u|b%"class"]=> - %unicode|string%(1) "A" + ["name"]=> + string(4) "pubA" + ["class"]=> + string(1) "A" } -%unicode|string%(9) "pubA in A" +string(9) "pubA in A" --- (Reflecting on protA) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protA" - [%u|b%"class"]=> - %unicode|string%(1) "A" + ["name"]=> + string(5) "protA" + ["class"]=> + string(1) "A" } Cannot access non-public member C::protA --- (Reflecting on privA) --- Property privA does not exist --- (Reflecting on pubB) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubB" - [%u|b%"class"]=> - %unicode|string%(1) "B" + ["name"]=> + string(4) "pubB" + ["class"]=> + string(1) "B" } -%unicode|string%(9) "pubB in B" +string(9) "pubB in B" --- (Reflecting on protB) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protB" - [%u|b%"class"]=> - %unicode|string%(1) "B" + ["name"]=> + string(5) "protB" + ["class"]=> + string(1) "B" } Cannot access non-public member C::protB --- (Reflecting on privB) --- Property privB does not exist --- (Reflecting on pubC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(4) "pubC" + ["class"]=> + string(1) "C" } -%unicode|string%(9) "pubC in C" +string(9) "pubC in C" --- (Reflecting on protC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(5) "protC" + ["class"]=> + string(1) "C" } Cannot access non-public member C::protC --- (Reflecting on privC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "privC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(5) "privC" + ["class"]=> + string(1) "C" } Cannot access non-public member C::privC --- (Reflecting on doesntExist) --- Property doesntExist does not exist --- (Reflecting on A::pubC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubC" - [%u|b%"class"]=> - %unicode|string%(1) "A" + ["name"]=> + string(4) "pubC" + ["class"]=> + string(1) "A" } -%unicode|string%(9) "pubC in A" +string(9) "pubC in A" --- (Reflecting on A::protC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protC" - [%u|b%"class"]=> - %unicode|string%(1) "A" + ["name"]=> + string(5) "protC" + ["class"]=> + string(1) "A" } Cannot access non-public member A::protC --- (Reflecting on A::privC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "privC" - [%u|b%"class"]=> - %unicode|string%(1) "A" + ["name"]=> + string(5) "privC" + ["class"]=> + string(1) "A" } Cannot access non-public member A::privC --- (Reflecting on B::pubC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubC" - [%u|b%"class"]=> - %unicode|string%(1) "B" + ["name"]=> + string(4) "pubC" + ["class"]=> + string(1) "B" } -%unicode|string%(9) "pubC in B" +string(9) "pubC in B" --- (Reflecting on B::protC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protC" - [%u|b%"class"]=> - %unicode|string%(1) "B" + ["name"]=> + string(5) "protC" + ["class"]=> + string(1) "B" } Cannot access non-public member B::protC --- (Reflecting on B::privC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "privC" - [%u|b%"class"]=> - %unicode|string%(1) "B" + ["name"]=> + string(5) "privC" + ["class"]=> + string(1) "B" } Cannot access non-public member B::privC --- (Reflecting on c::pubC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(4) "pubC" + ["class"]=> + string(1) "C" } -%unicode|string%(9) "pubC in C" +string(9) "pubC in C" --- (Reflecting on c::PUBC) --- Property PUBC does not exist --- (Reflecting on C::pubC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(4) "pubC" + ["class"]=> + string(1) "C" } -%unicode|string%(9) "pubC in C" +string(9) "pubC in C" --- (Reflecting on C::protC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(5) "protC" + ["class"]=> + string(1) "C" } Cannot access non-public member C::protC --- (Reflecting on C::privC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "privC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(5) "privC" + ["class"]=> + string(1) "C" } Cannot access non-public member C::privC --- (Reflecting on X::pubC) --- diff --git a/ext/reflection/tests/ReflectionClass_getProperty_004.phpt b/ext/reflection/tests/ReflectionClass_getProperty_004.phpt index 1070d57ce4..89335f42c4 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_004.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_004.phpt @@ -97,146 +97,146 @@ showInfo("doesntexist::doesntExist"); --EXPECTF-- --- (Reflecting on pubA) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubA" - [%u|b%"class"]=> - %unicode|string%(1) "A" + ["name"]=> + string(4) "pubA" + ["class"]=> + string(1) "A" } -%unicode|string%(9) "pubA in A" +string(9) "pubA in A" --- (Reflecting on protA) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protA" - [%u|b%"class"]=> - %unicode|string%(1) "A" + ["name"]=> + string(5) "protA" + ["class"]=> + string(1) "A" } Cannot access non-public member C::protA --- (Reflecting on privA) --- Property privA does not exist --- (Reflecting on pubB) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubB" - [%u|b%"class"]=> - %unicode|string%(1) "B" + ["name"]=> + string(4) "pubB" + ["class"]=> + string(1) "B" } -%unicode|string%(9) "pubB in B" +string(9) "pubB in B" --- (Reflecting on protB) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protB" - [%u|b%"class"]=> - %unicode|string%(1) "B" + ["name"]=> + string(5) "protB" + ["class"]=> + string(1) "B" } Cannot access non-public member C::protB --- (Reflecting on privB) --- Property privB does not exist --- (Reflecting on pubC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(4) "pubC" + ["class"]=> + string(1) "C" } -%unicode|string%(9) "pubC in C" +string(9) "pubC in C" --- (Reflecting on protC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(5) "protC" + ["class"]=> + string(1) "C" } Cannot access non-public member C::protC --- (Reflecting on privC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "privC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(5) "privC" + ["class"]=> + string(1) "C" } Cannot access non-public member C::privC --- (Reflecting on doesntExist) --- Property doesntExist does not exist --- (Reflecting on A::pubC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubC" - [%u|b%"class"]=> - %unicode|string%(1) "A" + ["name"]=> + string(4) "pubC" + ["class"]=> + string(1) "A" } -%unicode|string%(9) "pubC in C" +string(9) "pubC in C" --- (Reflecting on A::protC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protC" - [%u|b%"class"]=> - %unicode|string%(1) "A" + ["name"]=> + string(5) "protC" + ["class"]=> + string(1) "A" } Cannot access non-public member A::protC --- (Reflecting on A::privC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "privC" - [%u|b%"class"]=> - %unicode|string%(1) "A" + ["name"]=> + string(5) "privC" + ["class"]=> + string(1) "A" } Cannot access non-public member A::privC --- (Reflecting on B::pubC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubC" - [%u|b%"class"]=> - %unicode|string%(1) "B" + ["name"]=> + string(4) "pubC" + ["class"]=> + string(1) "B" } -%unicode|string%(9) "pubC in C" +string(9) "pubC in C" --- (Reflecting on B::protC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protC" - [%u|b%"class"]=> - %unicode|string%(1) "B" + ["name"]=> + string(5) "protC" + ["class"]=> + string(1) "B" } Cannot access non-public member B::protC --- (Reflecting on B::privC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "privC" - [%u|b%"class"]=> - %unicode|string%(1) "B" + ["name"]=> + string(5) "privC" + ["class"]=> + string(1) "B" } Cannot access non-public member B::privC --- (Reflecting on c::pubC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(4) "pubC" + ["class"]=> + string(1) "C" } -%unicode|string%(9) "pubC in C" +string(9) "pubC in C" --- (Reflecting on c::PUBC) --- Property PUBC does not exist --- (Reflecting on C::pubC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(4) "pubC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(4) "pubC" + ["class"]=> + string(1) "C" } -%unicode|string%(9) "pubC in C" +string(9) "pubC in C" --- (Reflecting on C::protC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "protC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(5) "protC" + ["class"]=> + string(1) "C" } Cannot access non-public member C::protC --- (Reflecting on C::privC) --- object(ReflectionProperty)#%d (2) { - [%u|b%"name"]=> - %unicode|string%(5) "privC" - [%u|b%"class"]=> - %unicode|string%(1) "C" + ["name"]=> + string(5) "privC" + ["class"]=> + string(1) "C" } Cannot access non-public member C::privC --- (Reflecting on X::pubC) --- |