Home
last modified time | relevance | path

Searched refs:getMethod (Results 1 – 25 of 41) sorted by relevance

12

/PHP-8.1/ext/reflection/tests/
H A DReflectionClass_getMethod_002.phpt2 ReflectionClass::getMethod() - error cases
15 var_dump($rc->getMethod());
20 var_dump($rc->getMethod("f", "f"));
25 var_dump($rc->getMethod(null));
30 var_dump($rc->getMethod(1));
35 var_dump($rc->getMethod(1.5));
40 var_dump($rc->getMethod(true));
45 var_dump($rc->getMethod(array(1,2,3)));
50 var_dump($rc->getMethod(new C));
59 ReflectionClass::getMethod() expects exactly 1 argument, 0 given
[all …]
H A Dbug30209.phpt2 Reflection Bug #30209 (ReflectionClass::getMethod() lowercases attribute)
16 $method = $class->getMethod($this->name);
H A Dbug81457.phpt14 $me = $re->getMethod('foo');
19 $mc = $re->getMethod('foo');
H A Dbug29828.phpt22 var_dump($r->getMethod('bla')->isConstructor());
23 var_dump($r->getMethod('bla')->isAbstract());
H A Dgh9409.phpt14 echo (new ReflectionClass('A'))->getMethod('privateMethod');
15 echo (new ReflectionClass('C'))->getMethod('privateMethod');
H A Dbug52057.phpt18 var_dump($h = $reflection->getMethod('__invoke')); // true
22 var_dump($h = $reflection->getMethod('__invoke')); // true
26 var_dump($h = $reflection->getMethod('__invoke')); // true
H A DReflectionMethod_getClosureThis.phpt27 $method = $staticclass->getMethod( 'foo' );
33 $method = $class->getMethod( 'foo' );
H A DReflectionMethod_getClosure_basic.phpt31 $method = $staticclass->getMethod( 'foo' );
35 $method = $class->getMethod( 'foo' );
H A DReflectionClass_getMethod_001.phpt2 ReflectionClass::getMethod()
35 var_dump($rc->getMethod("f"));
37 var_dump($rc->getMethod("s"));
39 var_dump($rc->getMethod("F"));
42 var_dump($rc->getMethod("doesNotExist"));
H A DReflectionMethod_getClosure_error.phpt27 $method = $class->getMethod( 'foo' );
28 $staticmethod = $staticclass->getMethod( 'foo' );
H A Dbug33312.phpt11 $method = $class->getMethod('bar');
H A Dbug51911.phpt12 $method = $clazz->getMethod('x');
/PHP-8.1/Zend/tests/attributes/
H A D013_class_scope.phpt23 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];
75 $args = $ref->getMethod('bar')->getAttributes()[0]->getArguments();
H A D001_placement.phpt34 $ref->getMethod('foo'),
35 $ref->getMethod('foo')->getParameters()[0],
36 $ref->getMethod('foo')->getParameters()[1],
H A D011_inheritance.phpt26 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes()));
30 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes()));
34 print_r(array_map(fn ($a) => $a->getName(), $ref->getMethod('foo')->getAttributes()));
/PHP-8.1/ext/reflection/tests/internal_parameter_default_value/
H A DReflectionParameter_getDefaultValueConstantName_Internal.phpt6 $method = $class->getMethod('setTime');
19 $method = $class->getMethod('getTransitions');
32 $method = $class->getMethod('listIdentifiers');
H A DReflectionParameter_isDefaultValueAvailable_Internal.phpt6 $method = $class->getMethod('setTime');
15 $method = $class->getMethod('listIdentifiers');
H A DReflectionParameter_toString_Internal.phpt6 $method = $class->getMethod('setTime');
15 $method = $class->getMethod('listIdentifiers');
H A DReflectionParameter_getDefaultValue_Internal.phpt6 $method = $class->getMethod('setTime');
19 $method = $class->getMethod('listIdentifiers');
H A DReflectionParameter_isDefaultValueConstant_Internal.phpt6 $method = $class->getMethod('setTime');
19 $method = $class->getMethod('listIdentifiers');
/PHP-8.1/Zend/tests/object_types/
H A Dreturn_type_reflection.phpt16 $returnTypeOne = (new ReflectionClass(One::class))->getMethod('a')->getReturnType();
19 $returnTypeTwo = (new ReflectionClass(Two::class))->getMethod('a')->getReturnType();
H A Dtype_hint_reflection.phpt16 $typeHintOne = (new ReflectionClass(One::class))->getMethod('a')->getParameters()[0]->getType();
19 $typeHintTwo = (new ReflectionClass(Two::class))->getMethod('a')->getParameters()[0]->getType();
/PHP-8.1/Zend/tests/enum/
H A Dbacked-tryFrom-casing.phpt9 $reflectionMethod = $reflectionEnum->getMethod('tryFrom');
/PHP-8.1/ext/phar/tests/
H A Dbug74383.phpt8 $rm = $rc->getMethod("running");
/PHP-8.1/Zend/tests/
H A Dbug54013.phpt18 $params = $reflectionClass->getMethod('b')->getParameters();

Completed in 17 milliseconds

12