/PHP-8.1/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 | 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_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_returnsReference_basic.phpt | 2 ReflectionMethod::returnsReference() 14 $methodInfo = new ReflectionMethod('TestClass::foo'); 17 $methodInfo = new ReflectionMethod('TestClass::bar');
|
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_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_getDeclaringClass_basic.phpt | 2 ReflectionMethod::getDeclaringClass() 14 $methodInfo = new ReflectionMethod('B', 'foo'); 17 $methodInfo = new ReflectionMethod('B', 'bar');
|
H A D | ReflectionMethod_tentative_return_type.phpt | 2 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 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_invoke_error1.phpt | 2 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 D | bug64239.phpt | 25 [0] => ReflectionMethod Object 31 [1] => ReflectionMethod Object 38 ReflectionMethod Object
|
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_setAccessible.phpt | 2 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 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"); 55 $abstractMethod = new ReflectionMethod("AbstractClass::foo");
|
H A D | 018.phpt | 5 var_dump(Reflection::getModifierNames(ReflectionMethod::IS_FINAL | ReflectionMethod::IS_PROTECTED));
|
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))
|
/PHP-8.1/ext/zend_test/tests/ |
H A D | attribute_arguments.phpt | 13 $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");
|