/PHP-8.4/Zend/tests/attributes/ |
H A D | 011_inheritance.phpt | 25 print_r(array_map(fn ($a) => $a->getName(), $ref->getAttributes())); 26 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes())); 29 print_r(array_map(fn ($a) => $a->getName(), $ref->getAttributes())); 30 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes())); 33 print_r(array_map(fn ($a) => $a->getName(), $ref->getAttributes())); 34 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes())); 57 print_r(array_map(fn ($a) => $a->getName(), $ref->getProperty('a')->getAttributes())); 60 print_r(array_map(fn ($a) => $a->getName(), $ref->getProperty('a')->getAttributes())); 63 print_r(array_map(fn ($a) => $a->getName(), $ref->getProperty('a')->getAttributes()));
|
H A D | 029_reflect_internal_symbols.phpt | 7 var_dump($rf->getAttributes()); 10 var_dump($rc->getAttributes()); 13 var_dump($rm->getAttributes()); 16 var_dump($rcc->getAttributes()); 19 var_dump($rp->getAttributes());
|
H A D | 006_filter.phpt | 7 $attr = $ref->getAttributes(A3::class); 12 $attr = $ref->getAttributes(A2::class); 17 $attr = $ref->getAttributes(A2::class); 29 $attr = $ref->getAttributes(\stdClass::class, \ReflectionAttribute::IS_INSTANCEOF); 34 $attr = $ref->getAttributes(A1::class, \ReflectionAttribute::IS_INSTANCEOF); 39 $attr = $ref->getAttributes(Base::class, \ReflectionAttribute::IS_INSTANCEOF); 44 $attr = $ref->getAttributes(A2::class, \ReflectionAttribute::IS_INSTANCEOF); 49 $attr = $ref->getAttributes(Base::class, \ReflectionAttribute::IS_INSTANCEOF); 58 $ref->getAttributes(A1::class, 3); 66 $ref->getAttributes(SomeMissingClass::class, \ReflectionAttribute::IS_INSTANCEOF); [all …]
|
H A D | 013_class_scope.phpt | 20 print_r($ref->getAttributes()[0]->getArguments()); 21 print_r($ref->getReflectionConstant('FOO')->getAttributes()[0]->getArguments()); 22 print_r($ref->getProperty('a')->getAttributes()[0]->getArguments()); 23 print_r($ref->getMethod('bar')->getAttributes()[0]->getArguments()); 24 print_r($ref->getMethod('bar')->getParameters()[0]->getAttributes()[0]->getArguments()); 42 print_r($ref->getMethod('foo')->getAttributes()[0]->getArguments()); 45 $attr = $ref->getMethod('foo')->getAttributes()[0]; 72 $args = $ref->getAttributes()[0]->getArguments(); 75 $args = $ref->getMethod('bar')->getAttributes()[0]->getArguments();
|
H A D | gh8421.phpt | 43 var_dump((new ReflectionFunction($globalClosure))->getAttributes(FunctionAttribute::class)[0]->newI… 44 var_dump((new ReflectionFunction($globalStaticClosure))->getAttributes(FunctionAttribute::class)[0]… 45 …ectionFunction(ClosureHolder::getClosureDefinedInScopeStatically()))->getAttributes(FunctionAttrib… 46 …Function(ClosureHolder::getStaticClosureDefinedInScopeStatically()))->getAttributes(FunctionAttrib… 50 var_dump((new ReflectionFunction($holder->getClosureDefinedInScope()))->getAttributes(FunctionAttri… 51 var_dump((new ReflectionFunction($holder->getStaticClosureDefinedInScope()))->getAttributes(Functio…
|
H A D | 017_closure_scope.phpt | 22 print_r($ref->getAttributes()[0]->getArguments()); 23 print_r($ref->getParameters()[0]->getAttributes()[0]->getArguments()); 28 print_r($ref->getAttributes()[0]->getArguments()); 29 print_r($ref->getParameters()[0]->getAttributes()[0]->getArguments());
|
H A D | 005_objects.phpt | 21 foreach ($ref->getAttributes() as $attr) { 32 $ref->getAttributes()[0]->newInstance(); 42 $ref->getAttributes()[0]->newInstance(); 52 $ref->getAttributes()[0]->newInstance(); 68 $ref->getAttributes()[0]->newInstance(); 80 $ref->getAttributes()[0]->newInstance();
|
H A D | 003_ast_nodes.phpt | 15 $attr = $ref->getAttributes(); 27 $attr = $ref->getAttributes(); 45 $attr = $ref->getAttributes(); 58 var_dump($ref->getAttributes()[0]->getArguments()); 69 $attr = $ref->getAttributes();
|
H A D | 020_userland_attribute_validation.phpt | 10 $attr = $ref->getAttributes()[0]; 17 $attr = $ref->getAttributes()[0]; 29 $attr = $ref->getAttributes()[0]; 44 $attr = $ref->getAttributes()[0];
|
H A D | 014_class_const_group.phpt | 15 $ra1 = $rp1->getAttributes()[0]; 18 $ra2 = $rp2->getAttributes()[0];
|
H A D | 015_property_group.phpt | 15 $ra1 = $rp1->getAttributes()[0]; 18 $ra2 = $rp2->getAttributes()[0];
|
/PHP-8.4/ext/reflection/tests/ |
H A D | ReflectionAttribute_toString.phpt | 10 echo $refl->getAttributes()[0]; 11 echo $refl->getAttributes()[1]; 12 echo $refl->getAttributes()[2]; 13 echo $refl->getAttributes()[3]; 14 echo $refl->getAttributes()[4];
|
H A D | ReflectionAttribute_newInstance_deprecated.phpt | 23 var_dump($reflection->getAttributes()[0]->newInstance()); 26 var_dump($reflection->getAttributes()[0]->newInstance()); 29 var_dump($reflection->getAttributes()[0]->newInstance()); 32 var_dump($reflection->getAttributes()[0]->newInstance());
|
H A D | bug80370.phpt | 2 Bug #80370: Segfault on ReflectionProperty::getAttributes of dynamic property 15 var_dump($reflectionProperty->getAttributes());
|
/PHP-8.4/ext/zend_test/tests/ |
H A D | gen_stub_test_03.phpt | 9 var_dump($reflectionConstant->getAttributes()[0]->newInstance()); 10 var_dump($reflectionConstant->getAttributes()[1]->newInstance()); 13 var_dump($reflectionProperty->getAttributes()[0]->newInstance()); 14 var_dump($reflectionProperty->getAttributes()[1]->newInstance()); 17 var_dump($reflectionMethod->getAttributes()[0]->newInstance());
|
H A D | attribute_arguments.phpt | 9 $attribute = $reflection->getParameters()[0]->getAttributes()[0]; 14 $attribute = $reflection->getParameters()[0]->getAttributes()[0]; 19 $attribute = $reflection->getParameters()[0]->getAttributes()[0]; 24 $attribute = $reflection->getParameters()[0]->getAttributes()[0]; 29 $attribute = $reflection->getParameters()[0]->getAttributes()[0]; 41 $attribute = $reflection->getParameters()[0]->getAttributes()[0]; 46 var_dump(count($reflection->getParameters()[0]->getAttributes())); 56 $attribute = $reflection->getParameters()[0]->getAttributes()[0]; 61 $attribute = $reflection->getParameters()[0]->getAttributes()[0]; 78 $attribute = $reflection->getParameters()[0]->getAttributes()[0]; [all …]
|
H A D | observer_bug81430_1.phpt | 24 call_user_func([$r->getAttributes(A::class)[0], 'newInstance']); 32 <!-- init ReflectionFunctionAbstract::getAttributes() --> 33 <ReflectionFunctionAbstract::getAttributes> 34 </ReflectionFunctionAbstract::getAttributes>
|
H A D | observer_bug81430_2.phpt | 28 call_user_func([$r->getAttributes(A::class)[0], 'newInstance']); 36 <!-- init ReflectionFunctionAbstract::getAttributes() --> 37 <ReflectionFunctionAbstract::getAttributes> 38 </ReflectionFunctionAbstract::getAttributes>
|
H A D | attribute-promotion-property-only.phpt | 16 $attr = $ref->getConstructor()->getParameters()[0]->getAttributes(); 20 $attr = $ref->getProperty('param')->getAttributes();
|
H A D | attribute-promotion-parameter-only.phpt | 16 $attr = $ref->getConstructor()->getParameters()[0]->getAttributes(); 22 $attr = $ref->getProperty('param')->getAttributes();
|
/PHP-8.4/Zend/tests/ |
H A D | ctor_promotion_attributes.phpt | 14 var_dump($prop->getAttributes()[0]->getName()); 17 var_dump($param->getAttributes()[0]->getName());
|
H A D | bug79897.phpt | 23 var_dump((new ReflectionParameter(['A', '__construct'], 'b'))->getAttributes()[0]->getArguments()); 24 var_dump((new ReflectionProperty('A', 'b'))->getAttributes()[0]->getArguments());
|
/PHP-8.4/Zend/tests/traits/ |
H A D | constant_020.phpt | 20 var_dump($reflection->getReflectionConstant('Constant')->getAttributes('TestAttribute')[0]->getArgu… 23 var_dump($reflection->getReflectionConstant('Constant')->getAttributes('TestAttribute')[0]->getArgu…
|
/PHP-8.4/Zend/tests/property_hooks/ |
H A D | attributes.phpt | 19 …r = (new ReflectionProperty(C::class, 'prop'))->getHook(PropertyHookType::Get)->getAttributes()[0]; 24 …r = (new ReflectionProperty(C::class, 'prop'))->getHook(PropertyHookType::Set)->getAttributes()[0];
|
/PHP-8.4/Zend/tests/named_params/ |
H A D | attributes.phpt | 21 $attr = (new ReflectionClass(Test1::class))->getAttributes()[0]; 26 $attr = (new ReflectionClass(Test2::class))->getAttributes()[0];
|