Home
last modified time | relevance | path

Searched refs:ReflectionMethod (Results 1 – 25 of 112) sorted by relevance

12345

/PHP-8.1/ext/reflection/tests/
H A DReflectionClass_getMethods_003.phpt46 object(ReflectionMethod)#%d (2) {
53 object(ReflectionMethod)#%d (2) {
60 object(ReflectionMethod)#%d (2) {
67 object(ReflectionMethod)#%d (2) {
76 object(ReflectionMethod)#%d (2) {
83 object(ReflectionMethod)#%d (2) {
90 object(ReflectionMethod)#%d (2) {
97 object(ReflectionMethod)#%d (2) {
106 object(ReflectionMethod)#%d (2) {
113 object(ReflectionMethod)#%d (2) {
[all …]
H A DReflectionMethod_constructor_error1.phpt2 ReflectionMethod constructor errors
18 $methodInfo = new ReflectionMethod(true);
24 $methodInfo = new ReflectionMethod(3);
30 $methodInfo = new ReflectionMethod(true, "foo");
42 $methodInfo = new ReflectionMethod("TestClass");
70 #0 %s ReflectionMethod->__construct('1')
75 #0 %s ReflectionMethod->__construct('3')
80 #0 %s ReflectionMethod->__construct('1', 'foo')
85 #0 %s ReflectionMethod->__construct('TestClass', '1')
90 #0 %s ReflectionMethod->__construct('TestClass')
[all …]
H A DReflectionMethod_constructor_error2.phpt2 ReflectionMethod constructor errors
18 $methodInfo = new ReflectionMethod();
24 $methodInfo = new ReflectionMethod("TestClass", "foo", true);
32 $methodInfo = new ReflectionMethod("InvalidClassName", "foo");
40 $methodInfo = new ReflectionMethod([], "foo");
47 $methodInfo = new ReflectionMethod("TestClass", []);
55 Ok - ReflectionMethod::__construct() expects at least 1 argument, 0 given
58 Ok - ReflectionMethod::__construct() expects at most 2 arguments, 3 given
60 Ok - ReflectionMethod::__construct(): Argument #1 ($objectOrMethod) must be of type object|string, …
61 Ok - ReflectionMethod::__construct(): Argument #2 ($method) must be of type ?string, array given
H A DReflectionClass_getMethod_001.phpt50 --> Check for f(): object(ReflectionMethod)#%d (2) {
56 --> Check for s(): object(ReflectionMethod)#%d (2) {
62 --> Check for F(): object(ReflectionMethod)#%d (2) {
70 --> Check for f(): object(ReflectionMethod)#%d (2) {
76 --> Check for s(): object(ReflectionMethod)#%d (2) {
82 --> Check for F(): object(ReflectionMethod)#%d (2) {
90 --> Check for f(): object(ReflectionMethod)#%d (2) {
96 --> Check for s(): object(ReflectionMethod)#%d (2) {
102 --> Check for F(): object(ReflectionMethod)#%d (2) {
110 --> Check for f(): object(ReflectionMethod)#%d (2) {
[all …]
H A DReflectionClass_getMethods_001.phpt42 object(ReflectionMethod)#%d (2) {
49 object(ReflectionMethod)#%d (2) {
59 object(ReflectionMethod)#%d (2) {
66 object(ReflectionMethod)#%d (2) {
76 object(ReflectionMethod)#%d (2) {
83 object(ReflectionMethod)#%d (2) {
93 object(ReflectionMethod)#%d (2) {
100 object(ReflectionMethod)#%d (2) {
110 object(ReflectionMethod)#%d (2) {
117 object(ReflectionMethod)#%d (2) {
H A DReflectionMethod_006.phpt2 ReflectionMethod methods - wrong num args
10 new ReflectionMethod();
15 new ReflectionMethod('a', 'b', 'c');
22 Ok - ReflectionMethod::__construct() expects at least 1 argument, 0 given
23 Ok - ReflectionMethod::__construct() expects at most 2 arguments, 3 given
H A DReflectionMethod_getPrototype_basic.phpt2 public ReflectionMethod ReflectionMethod::getPrototype ( void );
19 $reflectionMethod = new ReflectionMethod('HelloWorld', 'sayHelloTo');
24 object(ReflectionMethod)#2 (2) {
H A DReflectionMethod_getStaticVariables_basic.phpt2 ReflectionMethod::getStaticVariables()
24 $methodInfo = new ReflectionMethod('TestClass::foo');
28 $methodInfo = new ReflectionMethod('TestClass::bar');
32 $methodInfo = new ReflectionMethod('TestClass::noStatics');
36 $methodInfo = new ReflectionMethod('ReflectionClass::getName');
H A D008.phpt2 ReflectionMethod::__construct() tests
10 new ReflectionMethod($val);
21 new ReflectionMethod($val, $b[$key]);
30 string(90) "ReflectionMethod::__construct(): Argument #1 ($objectOrMethod) must be a valid method n…
31 string(90) "ReflectionMethod::__construct(): Argument #1 ($objectOrMethod) must be a valid method n…
H A DReflectionMethod_constructor_basic.phpt2 ReflectionMethod::isConstructor()
13 $methodInfo = new ReflectionMethod("NewCtor::__construct");
19 $methodInfo = new ReflectionMethod("ExtendsNewCtor::__construct");
28 $methodInfo = new ReflectionMethod("X::Y");
34 $methodInfo = new ReflectionMethod("Y::Y");
H A DReflectionMethod_getClosure_error.phpt2 Test ReflectionMethod::getClosure() function : error functionality
5 echo "*** Testing ReflectionMethod::getClosure() : error conditions ***\n";
32 echo "\n-- Testing ReflectionMethod::getClosure() function with invalid object --\n";
41 *** Testing ReflectionMethod::getClosure() : error conditions ***
43 -- Testing ReflectionMethod::getClosure() function with invalid object --
H A DReflectionMethod_returnsReference_basic.phpt2 ReflectionMethod::returnsReference()
14 $methodInfo = new ReflectionMethod('TestClass::foo');
17 $methodInfo = new ReflectionMethod('TestClass::bar');
H A DReflectionMethod_defaultArg.phpt2 ReflectionMethod and RECV_INIT (bug #70957 and #70958)
19 echo new \ReflectionMethod('F', 'bar');
20 echo new \ReflectionMethod('T', 'bar');
21 echo new \ReflectionMethod('B', 'bar');
H A DReflectionMethod_invoke_basic.phpt2 ReflectionMethod::invoke()
41 $foo = new ReflectionMethod('TestClass', 'foo');
42 $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs');
43 $staticMethod = new ReflectionMethod('TestClass::staticMethod');
44 $privateMethod = new ReflectionMethod("TestClass::privateMethod");
45 $methodThatThrows = new ReflectionMethod("TestClass::willThrow");
105 ReflectionMethod::invoke() expects at least 1 argument, 0 given
106 ReflectionMethod::invoke(): Argument #1 ($object) must be of type ?object, bool given
H A DReflectionMethod_getDeclaringClass_basic.phpt2 ReflectionMethod::getDeclaringClass()
14 $methodInfo = new ReflectionMethod('B', 'foo');
17 $methodInfo = new ReflectionMethod('B', 'bar');
H A DReflectionMethod_tentative_return_type.phpt2 ReflectionMethod returns tentative return type information correctly
15 function printInfo(ReflectionMethod $methodInfo) {
24 printInfo(new ReflectionMethod(DateTimeZone::class, 'listIdentifiers'));
25 printInfo(new ReflectionMethod(MyDateTimeZone::class, 'listIdentifiers'));
26 printInfo(new ReflectionMethod(FileSystemIterator::class, 'current'));
H A DReflectionMethod_invokeArgs_error2.phpt2 ReflectionMethod::invokeArgs() further errors
15 $foo = new ReflectionMethod('TestClass', 'foo');
27 string(85) "ReflectionMethod::invokeArgs(): Argument #2 ($args) must be of type array, bool given"
H A DReflectionMethod_invoke_error1.phpt2 ReflectionMethod::invoke() errors
24 $foo = new ReflectionMethod('TestClass', 'foo');
25 $privateMethod = new ReflectionMethod("TestClass::privateMethod");
48 $abstractMethod = new ReflectionMethod("AbstractClass::foo");
58 string(85) "ReflectionMethod::invoke(): Argument #1 ($object) must be of type ?object, bool given"
H A Dbug64239.phpt25 [0] => ReflectionMethod Object
31 [1] => ReflectionMethod Object
38 ReflectionMethod Object
H A Drequest38992.phpt13 $r = new ReflectionMethod('MyClass', 'doSomething');
26 ReflectionMethod::invoke(): Argument #1 ($object) must be of type ?object, string given
27 ReflectionMethod::invokeArgs(): Argument #1 ($object) must be of type ?object, string given
H A DReflectionMethod_setAccessible.phpt2 Test that ReflectionMethod::setAccessible() has no effects
12 $private = new ReflectionMethod('A', 'aPrivate');
13 $privateStatic = new ReflectionMethod('A', 'aPrivateStatic');
14 $protected = new ReflectionMethod('A', 'aProtected');
15 $protectedStatic = new ReflectionMethod('A', 'aProtectedStatic');
H A DReflectionMethod_invokeArgs_error3.phpt2 ReflectionMethod::invokeArgs() further errors
36 $foo = new ReflectionMethod($testClassInstance, 'foo');
37 $staticMethod = new ReflectionMethod('TestClass::staticMethod');
38 $privateMethod = new ReflectionMethod("TestClass::privateMethod");
55 $abstractMethod = new ReflectionMethod("AbstractClass::foo");
H A D018.phpt5 var_dump(Reflection::getModifierNames(ReflectionMethod::IS_FINAL | ReflectionMethod::IS_PROTECTED));
H A DReflectionMethod_invoke_error2.phpt2 ReflectionMethod::invoke() further errors
13 $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs');
27 #1 %sReflectionMethod_invoke_error2.php(15): ReflectionMethod->invoke(Object(TestClass))
/PHP-8.1/ext/zend_test/tests/
H A Dattribute_arguments.phpt13 $reflection = new ReflectionMethod("ZendTestClassWithMethodWithParameterAttribute", "no_override");
18 $reflection = new ReflectionMethod("ZendTestClassWithMethodWithParameterAttribute", "override");
23 $reflection = new ReflectionMethod("ZendTestChildClassWithMethodWithParameterAttribute", "no_overri…
28 $reflection = new ReflectionMethod("ZendTestChildClassWithMethodWithParameterAttribute", "override"…
40 $reflection = new ReflectionMethod("ChildClassWithNoAttribute", "no_override");
45 $reflection = new ReflectionMethod("ChildClassWithNoAttribute", "override");
55 $reflection = new ReflectionMethod("ChildClassWithSameAttribute", "no_override");
60 $reflection = new ReflectionMethod("ChildClassWithSameAttribute", "override");
77 $reflection = new ReflectionMethod("ChildClassWithDifferentAttribute", "no_override");
82 $reflection = new ReflectionMethod("ChildClassWithDifferentAttribute", "override");

Completed in 51 milliseconds

12345