Home
last modified time | relevance | path

Searched refs:ReflectionProperty (Results 1 – 25 of 119) sorted by relevance

12345

/php-src/ext/reflection/tests/
H A DReflectionClass_getProperties_003.phpt44 object(ReflectionProperty)#%d (2) {
51 object(ReflectionProperty)#%d (2) {
58 object(ReflectionProperty)#%d (2) {
65 object(ReflectionProperty)#%d (2) {
74 object(ReflectionProperty)#%d (2) {
81 object(ReflectionProperty)#%d (2) {
88 object(ReflectionProperty)#%d (2) {
95 object(ReflectionProperty)#%d (2) {
104 object(ReflectionProperty)#%d (2) {
111 object(ReflectionProperty)#%d (2) {
[all …]
H A DReflection_getModifierNames_001.phpt10 printModifiers(ReflectionProperty::IS_PRIVATE);
11 printModifiers(ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_STATIC);
12 printModifiers(ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_READONLY);
15 printModifiers(ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_STATIC | ReflectionProperty::…
H A DReflectionProperty_getDefaultValue.phpt2 reflection: ReflectionProperty::getDefaultValue
27 $property = new ReflectionProperty(TestClass::class, 'foo');
30 $property = new ReflectionProperty(TestClass::class, 'bar');
33 $property = new ReflectionProperty(TestClass::class, 'static1');
36 $property = new ReflectionProperty(TestClass::class, 'static2');
39 $property = new ReflectionProperty(TestClass::class, 'val1');
42 $property = new ReflectionProperty(TestClass::class, 'val2');
45 $property = new ReflectionProperty(TestClass::class, 'nullable');
48 $property = new ReflectionProperty(TestClass::class, 'nullable2');
51 $property = new ReflectionProperty(TestClass::class, 'constantAst');
[all …]
H A DReflectionProperty_hasDefaultValue.phpt2 reflection: ReflectionProperty::hasDefaultValue
22 $property = new ReflectionProperty(TestClass::class, 'foo');
25 $property = new ReflectionProperty(TestClass::class, 'bar');
28 $property = new ReflectionProperty(TestClass::class, 'static1');
31 $property = new ReflectionProperty(TestClass::class, 'static2');
34 $property = new ReflectionProperty(TestClass::class, 'val1');
37 $property = new ReflectionProperty(TestClass::class, 'val2');
40 $property = new ReflectionProperty(TestClass::class, 'nullable');
43 $property = new ReflectionProperty(TestClass::class, 'nullable2');
48 $property = new ReflectionProperty($test, 'dynamic');
H A DReflectionProperty_error.phpt2 Test ReflectionProperty class errors.
11 new ReflectionProperty();
16 new ReflectionProperty('C::p');
22 new ReflectionProperty('C', 'p', 'x');
29 Ok - ReflectionProperty::__construct() expects exactly 2 arguments, 0 given
30 Ok - ReflectionProperty::__construct() expects exactly 2 arguments, 1 given
31 Ok - ReflectionProperty::__construct() expects exactly 2 arguments, 3 given
H A DReflectionProperty_isInitialized.phpt2 Test ReflectionProperty::isInitialized()
27 var_dump((new ReflectionProperty($a, 'iv'))->isInitialized($a));
28 var_dump((new ReflectionProperty($a, 'i'))->isInitialized($a));
29 var_dump((new ReflectionProperty($a, 'n'))->isInitialized($a));
35 var_dump((new ReflectionProperty($a, 'i'))->isInitialized($a));
37 var_dump((new ReflectionProperty($a, 'n'))->isInitialized($a));
41 $rp = new ReflectionProperty($a, 'd');
47 $rp = new ReflectionProperty('A', 'p');
52 $rp = new ReflectionProperty('B', 'i');
85 $rp = new ReflectionProperty('WithMagic', 'prop');
[all …]
H A DReflectionClass_getProperties_001.phpt42 object(ReflectionProperty)#%d (2) {
49 object(ReflectionProperty)#%d (2) {
59 object(ReflectionProperty)#%d (2) {
66 object(ReflectionProperty)#%d (2) {
76 object(ReflectionProperty)#%d (2) {
83 object(ReflectionProperty)#%d (2) {
93 object(ReflectionProperty)#%d (2) {
100 object(ReflectionProperty)#%d (2) {
110 object(ReflectionProperty)#%d (2) {
117 object(ReflectionProperty)#%d (2) {
H A Dreadonly_properties.phpt11 $rp = new ReflectionProperty(Test::class, 'rw');
13 var_dump(($rp->getModifiers() & ReflectionProperty::IS_READONLY) != 0);
15 $rp = new ReflectionProperty(Test::class, 'ro');
17 var_dump(($rp->getModifiers() & ReflectionProperty::IS_READONLY) != 0);
19 $rp = new ReflectionProperty(Test::class, 'ro');
H A Dgh8444.phpt2 GH-8444 (Fix ReflectionProperty::__toString() of properties containing instantiated enums)
17 echo new \ReflectionProperty('Bar', 'enum'), "\n";
18 echo new \ReflectionProperty('Bar', 'enumInArray'), "\n";
20 echo new \ReflectionProperty(new Bar, 'enum'), "\n";
21 echo new \ReflectionProperty(new Bar, 'enumInArray'), "\n";
H A DReflectionProperty_getValue_error.phpt2 Test ReflectionProperty::getValue() errors.
19 $propInfo = new ReflectionProperty('TestClass', 'pub2');
22 $propInfo = new ReflectionProperty('TestClass', 'stat');
32 $propInfo = new ReflectionProperty('TestClass', 'prot');
36 $propInfo = new ReflectionProperty('TestClass', 'pub2');
55 ReflectionProperty::getValue() expects at most 1 argument, 2 given
65 ReflectionProperty::getValue(): Argument #1 ($object) must be provided for instance properties
H A Dbug61388.phpt9 print_r($reflObj->getProperties(ReflectionProperty::IS_PUBLIC));
13 print_r($reflObj->getProperties(ReflectionProperty::IS_PUBLIC));
21 [0] => ReflectionProperty Object
27 [1] => ReflectionProperty Object
H A DReflectionClass_getProperty_003.phpt95 object(ReflectionProperty)#%d (2) {
103 object(ReflectionProperty)#%d (2) {
113 object(ReflectionProperty)#%d (2) {
121 object(ReflectionProperty)#%d (2) {
131 object(ReflectionProperty)#%d (2) {
139 object(ReflectionProperty)#%d (2) {
147 object(ReflectionProperty)#%d (2) {
157 object(ReflectionProperty)#%d (2) {
165 object(ReflectionProperty)#%d (2) {
173 object(ReflectionProperty)#%d (2) {
[all …]
H A DReflectionClass_getProperty_004.phpt99 object(ReflectionProperty)#%d (2) {
107 object(ReflectionProperty)#%d (2) {
117 object(ReflectionProperty)#%d (2) {
125 object(ReflectionProperty)#%d (2) {
135 object(ReflectionProperty)#%d (2) {
143 object(ReflectionProperty)#%d (2) {
151 object(ReflectionProperty)#%d (2) {
161 object(ReflectionProperty)#%d (2) {
169 object(ReflectionProperty)#%d (2) {
177 object(ReflectionProperty)#%d (2) {
[all …]
H A Dbug46064_2.phpt2 Bug #46064.2 (Exception when creating ReflectionProperty object on dynamically created property)
42 object(ReflectionProperty)#%d (2) {
48 object(ReflectionProperty)#%d (2) {
61 object(ReflectionProperty)#%d (2) {
68 object(ReflectionProperty)#%d (2) {
H A Dasymmetric_visibility_flags.phpt2 ReflectionProperty::is{Private,Protected}Set
12 $reflectionProperty = new ReflectionProperty(Foo::class, $property);
15 var_dump(($reflectionProperty->getModifiers() & ReflectionProperty::IS_PRIVATE_SET) !== 0);
16 var_dump(($reflectionProperty->getModifiers() & ReflectionProperty::IS_PROTECTED_SET) !== 0);
H A DReflectionProperty_setValue_error.phpt2 Test ReflectionProperty::setValue() error cases.
20 $propInfo = new ReflectionProperty('TestClass', 'pub2');
24 $propInfo = new ReflectionProperty('TestClass', 'prot');
29 $propInfo = new ReflectionProperty('TestClass', 'pub2');
H A DReflectionProperty_setAccessible.phpt2 Test that ReflectionProperty::setAccessible() has no effects
15 $protected = new ReflectionProperty($a, 'protected');
16 $protectedStatic = new ReflectionProperty('A', 'protectedStatic');
17 $private = new ReflectionProperty($a, 'private');
18 $privateStatic = new ReflectionProperty('A', 'privateStatic');
57 $protected = new ReflectionProperty($b, 'protected');
58 $protectedStatic = new ReflectionProperty('B', 'protectedStatic');
59 $private = new ReflectionProperty($a, 'private');
103 Deprecated: Calling ReflectionProperty::setValue() with a single argument is deprecated in %s on li…
H A DReflectionClass_getProperty_001.phpt63 --> Check for s: object(ReflectionProperty)#%d (2) {
69 --> Check for a: object(ReflectionProperty)#%d (2) {
78 --> Check for s: object(ReflectionProperty)#%d (2) {
84 --> Check for a: object(ReflectionProperty)#%d (2) {
93 --> Check for s: object(ReflectionProperty)#%d (2) {
99 --> Check for a: object(ReflectionProperty)#%d (2) {
108 --> Check for s: object(ReflectionProperty)#%d (2) {
114 --> Check for a: object(ReflectionProperty)#%d (2) {
123 --> Check for s: object(ReflectionProperty)#%d (2) {
129 --> Check for a: object(ReflectionProperty)#%d (2) {
[all …]
H A DReflectionProperty_constructor_error.phpt2 Test ReflectionProperty class constructor errors.
13 new ReflectionProperty("NonExistentClass", "prop");
20 new ReflectionProperty($a, 'TestClass');
28 new ReflectionProperty('TestClass', "nonExistentProperty");
H A Dbug79820.phpt2 Bug #79820: Use after free when type duplicated into ReflectionProperty gets resolved
11 $rp = new ReflectionProperty(Test::class, 'prop');
17 $rp = new ReflectionProperty($test, 'dynProp');
H A Dbug71018.phpt2 Bug #71018 (ReflectionProperty::setValue() behavior changed)
21 $Prop1 = new ReflectionProperty(T1::class, 'data');
22 $Prop2 = new ReflectionProperty(T2::class, 'data');
51 Deprecated: Calling ReflectionProperty::setValue() with a 1st argument which is not null or an obje…
53 Deprecated: Calling ReflectionProperty::setValue() with a 1st argument which is not null or an obje…
56 Calling ReflectionProperty::setValue() with a 1st argument which is not null or an object is deprec…
H A DReflectionProperty_constructor_variation1.phpt2 ReflectionProperty::__construct(): ensure inherited private props can't be accessed through Reflect…
11 $rp = new ReflectionProperty("D", "p");
22 $rp = new ReflectionProperty("D", "p");
32 $rp = new ReflectionProperty("D", "p");
H A Dbug30146.phpt2 Reflection Bug #30146 (ReflectionProperty->getValue() requires instance for static property)
9 $r = new ReflectionProperty('test', 'a');
22 Deprecated: Calling ReflectionProperty::setValue() with a single argument is deprecated in %s on li…
/php-src/ext/zend_test/tests/
H A Dgh9871.phpt14 class MyReflectionProperty extends ReflectionProperty {
28 <!-- init ReflectionProperty::__construct() -->
29 <ReflectionProperty::__construct>
30 </ReflectionProperty::__construct:NULL>
31 <!-- init ReflectionProperty::setAccessible() -->
32 <ReflectionProperty::setAccessible>
33 </ReflectionProperty::setAccessible:NULL>
/php-src/ext/reflection/tests/property_hooks/
H A DReflectionProperty_getHook_inheritance.phpt28 echo ((new ReflectionProperty(A::class, 'foo'))->getHook(PropertyHookType::Get)->invoke($a)), "\n";
29 echo ((new ReflectionProperty(A::class, 'foo'))->getHook(PropertyHookType::Get)->invoke($b)), "\n";
30 echo ((new ReflectionProperty(B::class, 'foo'))->getHook(PropertyHookType::Get)->invoke($b)), "\n";
32 ((new ReflectionProperty(A::class, 'foo'))->getHook(PropertyHookType::Set)->invoke($a, null));
33 ((new ReflectionProperty(A::class, 'foo'))->getHook(PropertyHookType::Set)->invoke($b, null));
34 ((new ReflectionProperty(B::class, 'foo'))->getHook(PropertyHookType::Set)->invoke($b, null));

Completed in 50 milliseconds

12345