Home
last modified time | relevance | path

Searched refs:rp (Results 1 – 25 of 40) sorted by relevance

12

/php-src/ext/reflection/tests/
H A Dclosures_001.phpt30 var_dump($rp->isOptional());
32 var_dump($rp->isOptional());
34 var_dump($rp->isOptional());
36 var_dump($rp->isOptional());
40 $rp = new ReflectionParameter($closure, 0);
41 var_dump($rp->isOptional());
42 $rp = new ReflectionParameter($closure, 1);
43 var_dump($rp->isOptional());
44 $rp = new ReflectionParameter($closure, 'a');
45 var_dump($rp->isOptional());
[all …]
H A Dbug45139.phpt23 $rp = $rc->getProperty('foo');
24 var_dump($rp->getDeclaringClass()->getName()); // c
27 $rp = $rc->getProperty('foo');
28 var_dump($rp->getDeclaringClass()->getName()); // A
31 $rp = $rc->getProperty('bar');
32 var_dump($rp->getDeclaringClass()->getName()); // B
35 $rp = $rc->getProperty('bar');
36 var_dump($rp->getDeclaringClass()->getName()); // B
39 $rp = $rc->getProperty('baz');
43 $rp = $rc->getProperty('baz');
[all …]
H A Dreadonly_properties.phpt11 $rp = new ReflectionProperty(Test::class, 'rw');
12 var_dump($rp->isReadOnly());
13 var_dump(($rp->getModifiers() & ReflectionProperty::IS_READONLY) != 0);
15 $rp = new ReflectionProperty(Test::class, 'ro');
16 var_dump($rp->isReadOnly());
17 var_dump(($rp->getModifiers() & ReflectionProperty::IS_READONLY) != 0);
19 $rp = new ReflectionProperty(Test::class, 'ro');
20 echo $rp;
H A DReflectionProperty_typed_static.phpt12 $rp = new ReflectionProperty('Test', 'x');
13 var_dump($rp->getValue());
15 $rp = new ReflectionProperty('Test', 'y');
17 var_dump($rp->getValue());
22 $rp->setValue(null, "24");
23 var_dump($rp->getValue());
26 $rp->setValue(null, "foo");
30 var_dump($rp->getValue());
34 $rp = new ReflectionProperty('Test', 'z');
36 $rp->setValue(null, "foo");
[all …]
H A DReflectionProperty_isInitialized.phpt41 $rp = new ReflectionProperty($a, 'd');
42 var_dump($rp->isInitialized($a));
44 var_dump($rp->isInitialized($a));
47 $rp = new ReflectionProperty('A', 'p');
48 var_dump($rp->isInitialized($a));
49 var_dump($rp->isInitialized($a));
52 $rp = new ReflectionProperty('B', 'i');
53 var_dump($rp->isInitialized($a));
62 var_dump($rp->isInitialized());
86 var_dump($rp->isInitialized($obj));
[all …]
H A Ddefault_value_leak.phpt10 $rp = new ReflectionParameter(['Test', 'method'], 'param');
11 var_dump($rp->isDefaultValueAvailable());
12 var_dump($rp->isDefaultValueConstant());
13 var_dump($rp->getDefaultValue());
H A Dbug79820.phpt11 $rp = new ReflectionProperty(Test::class, 'prop');
14 var_dump($rp->getType()->getName());
17 $rp = new ReflectionProperty($test, 'dynProp');
18 var_dump($rp->getType());
H A Dclosures_002.phpt15 $rp = new ReflectionParameter(array(new Test, '__invoke'), 0);
16 var_dump($rp->isOptional());
18 $rp = new ReflectionParameter(array(new Test, '__invoke'), 1);
19 var_dump($rp->isOptional());
H A Dinternal_static_property.phpt8 $rp = new ReflectionProperty('_ZendTestClass', '_StaticProp');
9 $rp->setValue(new _ZendTestClass(), 42);
10 var_dump($rp->getValue());
H A DReflectionProperty_constructor_variation1.phpt11 $rp = new ReflectionProperty("D", "p");
12 var_dump($rp);
22 $rp = new ReflectionProperty("D", "p");
23 var_dump($rp);
32 $rp = new ReflectionProperty("D", "p");
33 var_dump($rp);
H A Ddefault_value_internal_userland_arginfo.phpt10 $rp = $rm->getParameters()[0];
11 var_dump($rp->isDefaultValueAvailable());
13 var_dump($rp->getDefaultValue());
H A Dconstructor_promotion.phpt27 $rp = new ReflectionParameter([Test::class, '__construct'], 'y');
28 var_dump($rp->isPromoted());
29 $rp = new ReflectionParameter([Test::class, '__construct'], 'z');
30 var_dump($rp->isPromoted());
H A DReflectionProperty_isFinal.phpt18 foreach ($rc->getProperties() as $rp) {
19 echo $rp->getName(), ": ";
20 var_dump($rp->isFinal());
H A Dinternal_property_union_type.phpt7 $rp = new ReflectionProperty(_ZendTestClass::class, 'classUnionProp');
8 $rt = $rp->getType();
H A DReflectionProperty_getModifiers_basic.phpt29 $rp = new ReflectionProperty("C", "a$i");
31 var_dump($rp->getModifiers());
32 $rp = new ReflectionProperty("D", "a$i");
34 var_dump($rp->getModifiers());
H A Dbug80564.phpt12 $rp = new ReflectionProperty('A', 'x');
13 echo $rp;
H A Dbug78774.phpt12 $rp = $rc->getProperty('prop');
13 $rt = $rp->getType();
H A Dnew_in_constexpr.phpt23 $rp = $rf->getParameters()[0];
25 var_dump($rp->getDefaultValue() !== test2());
/php-src/ext/reflection/tests/property_hooks/
H A DReflectionProperty_isInitialized.phpt22 foreach ($rc->getProperties() as $rp) {
23 echo $rp->getName(), "\n";
24 var_dump($rp->isInitialized($test));
26 $rp->setRawValue($test, 42);
28 var_dump($rp->isInitialized($test));
H A DReflectionProperty_getHooks.phpt14 $rp = new ReflectionProperty(Test::class, 'prop' . $i);
15 var_dump($rp->hasHooks());
16 var_dump($rp->getHooks());
/php-src/ext/reflection/tests/types/
H A DReflectionType_002.phpt8 $rp = $rm->getParameters()[0];
9 $rt = $rp->getType();
11 unset($rm, $rp);
H A Dintersection_types.phpt25 $rp = $rc->getProperty('prop');
26 dumpType($rp->getType());
37 $rp = $rc->getProperty('prop');
38 dumpType($rp->getType());
H A Ddnf_types_with_null.phpt29 $rp = $rc->getProperty('prop');
30 dumpType($rp->getType());
41 $rp = $rc->getProperty('prop');
42 dumpType($rp->getType());
/php-src/Zend/tests/
H A Dbug50174.phpt25 $rp = new ReflectionProperty('TestClass2', 'x');
26 var_dump($rp->getDocComment());
/php-src/Zend/tests/attributes/
H A D029_reflect_internal_symbols.phpt18 $rp = new ReflectionProperty('Exception', 'message');
19 var_dump($rp->getAttributes());

Completed in 60 milliseconds

12