/PHP-8.0/ext/reflection/tests/ |
H A D | ReflectionClass_getMethods_003.phpt | 46 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 D | ReflectionMethod_constructor_error1.phpt | 2 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 D | ReflectionMethod_constructor_error2.phpt | 2 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 D | ReflectionClass_getMethod_001.phpt | 50 --> 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 D | ReflectionMethod_setAccessible.phpt | 2 Test ReflectionMethod::setAccessible(). 12 $private = new ReflectionMethod('A', 'aPrivate'); 13 $privateStatic = new ReflectionMethod('A', 'aPrivateStatic'); 14 $protected = new ReflectionMethod('A', 'aProtected'); 15 $protectedStatic = new ReflectionMethod('A', 'aProtectedStatic'); 96 string(73) "Trying to invoke private method A::aPrivate() from scope ReflectionMethod" 97 string(73) "Trying to invoke private method A::aPrivate() from scope ReflectionMethod" 98 string(79) "Trying to invoke private method A::aPrivateStatic() from scope ReflectionMethod" 99 string(79) "Trying to invoke private method A::aPrivateStatic() from scope ReflectionMethod" 100 string(77) "Trying to invoke protected method A::aProtected() from scope ReflectionMethod" [all …]
|
H A D | ReflectionClass_getMethods_001.phpt | 42 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 D | ReflectionMethod_006.phpt | 2 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 D | ReflectionMethod_getPrototype_basic.phpt | 2 public ReflectionMethod ReflectionMethod::getPrototype ( void ); 19 $reflectionMethod = new ReflectionMethod('HelloWorld', 'sayHelloTo'); 24 object(ReflectionMethod)#2 (2) {
|
H A D | ReflectionMethod_getStaticVariables_basic.phpt | 2 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 D | 008.phpt | 2 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 D | ReflectionMethod_returnsReference_basic.phpt | 2 ReflectionMethod::returnsReference() 14 $methodInfo = new ReflectionMethod('TestClass::foo'); 17 $methodInfo = new ReflectionMethod('TestClass::bar');
|
H A D | ReflectionMethod_constructor_basic.phpt | 2 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 D | ReflectionMethod_getClosure_error.phpt | 2 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 D | ReflectionMethod_defaultArg.phpt | 2 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 D | ReflectionMethod_getDeclaringClass_basic.phpt | 2 ReflectionMethod::getDeclaringClass() 14 $methodInfo = new ReflectionMethod('B', 'foo'); 17 $methodInfo = new ReflectionMethod('B', 'bar');
|
H A D | ReflectionMethod_invoke_basic.phpt | 2 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 D | ReflectionMethod_invoke_error1.phpt | 2 ReflectionMethod::invoke() errors 24 $foo = new ReflectionMethod('TestClass', 'foo'); 25 $privateMethod = new ReflectionMethod("TestClass::privateMethod"); 52 $abstractMethod = new ReflectionMethod("AbstractClass::foo"); 62 string(85) "ReflectionMethod::invoke(): Argument #1 ($object) must be of type ?object, bool given" 68 string(86) "Trying to invoke private method TestClass::privateMethod() from scope ReflectionMethod"
|
H A D | ReflectionMethod_invokeArgs_error2.phpt | 2 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 D | ReflectionMethod_invokeArgs_error3.phpt | 2 ReflectionMethod::invokeArgs() further errors 36 $foo = new ReflectionMethod($testClassInstance, 'foo'); 37 $staticMethod = new ReflectionMethod('TestClass::staticMethod'); 38 $privateMethod = new ReflectionMethod("TestClass::privateMethod"); 59 $abstractMethod = new ReflectionMethod("AbstractClass::foo"); 82 string(86) "Trying to invoke private method TestClass::privateMethod() from scope ReflectionMethod"
|
H A D | bug64239.phpt | 25 [0] => ReflectionMethod Object 31 [1] => ReflectionMethod Object 38 ReflectionMethod Object
|
H A D | 018.phpt | 5 var_dump(Reflection::getModifierNames(ReflectionMethod::IS_FINAL | ReflectionMethod::IS_PROTECTED));
|
H A D | request38992.phpt | 13 $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 D | ReflectionMethod_invoke_error2.phpt | 2 ReflectionMethod::invoke() further errors 13 $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs'); 27 #1 %sReflectionMethod_invoke_error2.php(15): ReflectionMethod->invoke(Object(TestClass))
|
H A D | ReflectionMethod_invokeArgs_error1.phpt | 2 ReflectionMethod:invokeArgs() errors 17 $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs'); 31 #1 %sReflectionMethod_invokeArgs_error1.php(19): ReflectionMethod->invokeArgs(Object(TestClass), Ar…
|
H A D | ReflectionMethod_invokeArgs_basic.phpt | 2 ReflectionMethod::invokeArgs() 28 $foo = new ReflectionMethod($testClassInstance, 'foo'); 29 $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs'); 30 $methodThatThrows = new ReflectionMethod("TestClass::willThrow");
|