/PHP-7.4/Zend/tests/ |
H A D | bug55247.phpt | 16 $method = 'method'; 20 $test->method(); 21 $test->$method(); 24 Test::method(); 25 Test::$method(); 28 method 29 method 30 method 31 method 32 method [all …]
|
H A D | call_to_abstract_method_args.phpt | 2 Check that arguments are freed when a call to an abstract method throws 7 abstract static function method(); 11 Test::method(new stdClass); 18 $ret = Test::method(new stdClass); 25 Cannot call abstract method Test::method() 26 Cannot call abstract method Test::method()
|
H A D | indirect_call_string_002.phpt | 2 Indirect call with empty class and/or method name. 7 public static function __callStatic($method, array $args) 9 var_dump($method); 17 // Test call using Class::method syntax. 22 $callback = ['', 'method']; 29 // Test Class::method syntax with empty class name 30 $callback = '::method'; 37 // Test array syntax with empty class and method name 45 // Test Class::method syntax with empty class and method name 62 $callback = ':method'; [all …]
|
H A D | bug68475.phpt | 2 Bug #68475 Calling function using $callable() syntax with strings of form 'Class::method' 9 echo "Static method called!\n"; 14 printf("Static method called with args: %s, %s, %s\n", $arg1, $arg2, $arg3); 18 // Test basic call using Class::method syntax. 35 // Reference undefined method. 52 Static method called! 53 Static method called! 54 Static method called with args: arg1, arg2, arg3 55 Static method called with args: arg1, arg2, arg3 56 Call to undefined method TestClass::undefinedMethod()
|
H A D | bug19859.phpt | 7 function __call($method,$args) 9 print "test::__call invoked for method '$method'\n"; 18 test::__call invoked for method 'fake' 19 test::__call invoked for method 'fake' 20 test::__call invoked for method 'fake'
|
H A D | indirect_call_from_constant.phpt | 8 public static function method() 14 ['Test', 'method'](); 16 'Test::method'(); 18 (['Test', 'method'])(); 20 ('Test::method')();
|
/PHP-7.4/ext/reflection/tests/ |
H A D | ReflectionClass_toString_001.phpt | 57 Method [ <internal:Reflection> public method getName ] { 63 Method [ <internal:Reflection> public method isInternal ] { 75 Method [ <internal:Reflection> public method isAnonymous ] { 87 Method [ <internal:Reflection> public method isCloneable ] { 93 Method [ <internal:Reflection> public method getFileName ] { 105 Method [ <internal:Reflection> public method getEndLine ] { 123 Method [ <internal:Reflection> public method hasMethod ] { 130 Method [ <internal:Reflection> public method getMethod ] { 137 Method [ <internal:Reflection> public method getMethods ] { 234 Method [ <internal:Reflection> public method isTrait ] { [all …]
|
H A D | ReflectionMethod_getModifiers_basic.phpt | 10 foreach ($methodArray as $method) { 11 echo "Modifiers for method $method->class::$method->name():\n"; 89 Modifiers for method TestClass::foo(): 93 Modifiers for method TestClass::stat(): 97 Modifiers for method TestClass::priv(): 101 Modifiers for method TestClass::prot(): 105 Modifiers for method TestClass::fin(): 157 Modifiers for method TestClass::foo(): 161 Modifiers for method TestClass::stat(): 165 Modifiers for method TestClass::priv(): [all …]
|
H A D | ReflectionMethod_basic2.phpt | 6 function reflectMethod($class, $method) { 7 $methodInfo = new ReflectionMethod($class, $method); 9 echo "Reflecting on method $class::$method()\n\n"; 54 Reflecting on method DerivedClass::foo() 72 Reflecting on method TestClass::stat() 90 Reflecting on method TestClass::priv() 93 string(%d) "Method [ <user> private method priv ] { 108 Reflecting on method TestClass::prot() 126 Reflecting on method DerivedClass::prot() 144 Reflecting on method TestInterface::int() [all …]
|
H A D | closures_003_v1.phpt | 8 $method = new ReflectionFunction ($closure); 9 $params = $method->getParameters (); 10 unset ($method); 11 $method = $params[0]->getDeclaringFunction (); 13 echo $method->getName ()."\n"; 16 $method = $parameter->getDeclaringFunction (); 18 echo $method->getName ()."\n";
|
H A D | closures_003.phpt | 8 $method = new ReflectionMethod ($closure, '__invoke'); 9 $params = $method->getParameters (); 10 unset ($method); 11 $method = $params[0]->getDeclaringFunction (); 13 echo $method->getName ()."\n"; 16 $method = $parameter->getDeclaringFunction (); 18 echo $method->getName ()."\n";
|
H A D | bug60367.phpt | 21 $method = new ReflectionMethod("b::call"); 22 $method->invoke(null); 23 $method->invokeArgs(null, array()); 24 $method = new ReflectionMethod("A::call"); 25 $method->invoke(null); 26 $method->invokeArgs(null, array());
|
/PHP-7.4/ext/xmlrpc/tests/ |
H A D | 002.phpt | 8 $r = xmlrpc_encode_request("method", array()); 9 var_dump(xmlrpc_decode_request($r, $method)); 10 var_dump($method); 12 $r = xmlrpc_encode_request("method", 1); 14 var_dump($method); 18 var_dump($method); 22 var_dump($method); 26 var_dump($method); 33 string(6) "method" 38 string(6) "method" [all …]
|
/PHP-7.4/ext/oci8/tests/ |
H A D | reflection2.phpt | 30 Method [ <internal%s> public method load ] { 36 Method [ <internal%s> public method tell ] { 42 Method [ <internal%s> public method truncate ] { 49 Method [ <internal%s> public method erase ] { 57 Method [ <internal%s> public method flush ] { 83 Method [ <internal%s> public method read ] { 90 Method [ <internal%s> public method eof ] { 96 Method [ <internal%s> public method seek ] { 104 Method [ <internal%s> public method write ] { 119 Method [ <internal%s> public method size ] { [all …]
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | reflection_tools.inc | 18 if ($method = $class->getConstructor()) 19 inspectMethod($method); 23 foreach ($methods as $method) 24 $tmp[$method->getName()] = $method; 27 foreach ($tmp as $method) 28 inspectMethod($method); 74 function inspectMethod(&$method) { 76 printf("\nInspecting method '%s'\n", $method->getName()); 92 if ($params = $method->getParameters()) { 99 inspectParameter($method, $param); [all …]
|
/PHP-7.4/Zend/tests/closures/ |
H A D | closure_from_callable_basic.phpt | 20 echo 'Access public instance method of object'; 44 echo "Instance return private method as callable"; 79 echo 'Access public instance method of parent object through "self::" to parent method'; 84 echo 'Access proteced instance method of parent object through "self::" to parent method'; 89 echo 'MagicCall __call instance method '; 93 echo 'MagicCall __callStatic static method '; 104 Access public instance method of object OK 110 Instance return private method as callable OK 111 Instance return private static method as callable OK 117 Access public instance method of parent object through "self::" to parent method OK [all …]
|
/PHP-7.4/ext/standard/tests/general_functions/ |
H A D | output_add_rewrite_var_basic3.phpt | 28 <form method="get"> </form> 29 <form action="./foo.php" method="get"> </a> 30 <form action="//php.net/bar.php" method="get"> </a> 48 <form method="get"> </form> 49 <form action="./foo.php" method="get"> </a> 50 <form action="//php.net/bar.php" method="get"> </a> 70 <form method="get"> </form> 71 <form action="./foo.php" method="get"> </a> 72 <form action="//php.net/bar.php" method="get"> </a> 87 <form action="//php.net/bar.php" method="get"> </a> [all …]
|
H A D | output_add_rewrite_var_basic4.phpt | 28 <form method="get"> </form> 29 <form action="./foo.php" method="get"> </a> 30 <form action="//php.net/bar.php" method="get"> </a> 48 <form method="get"> </form> 49 <form action="./foo.php" method="get"> </a> 50 <form action="//php.net/bar.php" method="get"> </a> 70 <form method="get"> </form> 71 <form action="./foo.php" method="get"> </a> 72 <form action="//php.net/bar.php" method="get"> </a> 100 <form method="get"> </form> [all …]
|
/PHP-7.4/Zend/tests/traits/ |
H A D | bug64235.phpt | 2 Bug #64235 (Insteadof not work for class method in 5.4.11) 8 public function method() 10 print_r('Parent method'); 17 public function method() 19 print_r('Trait method'); 28 TestTrait::method as methodAlias; 29 TestParentClass::method insteadof TestTrait;
|
H A D | bug64235b.phpt | 2 Bug #64235 (Insteadof not work for class method in 5.4.11) 8 public function method() 10 print_r('Parent method'); 17 public function method() 19 print_r('Trait method'); 28 TestTrait::method as methodAlias; 29 TestParentClass::method as TestParent;
|
/PHP-7.4/Zend/tests/type_declarations/variance/ |
H A D | parent_in_class.phpt | 8 public function method(parent $x) {} 11 public function method(parent $x) {} 17 public function method(parent $x) {} 20 public function method(P2 $x) {} 26 public function method($x): parent {} 29 public function method($x): parent {} 35 public function method(parent $x) {} 38 public function method(parent $x) {} 45 Warning: Declaration of B4::method(A4 $x) should be compatible with A4::method(P4 $x) in %s on line… 47 Warning: Could not check compatibility between B::method(A $x) and A::method(parent $x), because cl…
|
H A D | class_order_autoload_error3.phpt | 9 public function method(): X {} 13 public function method(): Y {} 17 public function method(): Q {} 21 public function method(): R {} 25 public function method(): B {} 29 public function method(): A {} 38 Fatal error: Declaration of R::method(): A must be compatible with Q::method(): B in %s on line %d
|
/PHP-7.4/ext/opcache/tests/ |
H A D | preload_variance.inc | 6 public function method(X $a) {} 9 public function method($a) : X {} 14 public function method($a): self {} 18 public function method($a): self {} 26 public function method($a): I {} 29 public function method($a): J {} 34 public function method($a): K {} 37 public function method($a): L {} 42 public function method(X $a) {}
|
/PHP-7.4/Zend/tests/type_declarations/ |
H A D | iterable_005.phpt | 7 function method(): iterable { 13 function method(): array { 19 function method(): Traversable { 25 function method(): int { 32 Fatal error: Declaration of TestScalar::method(): int must be compatible with Test::method(): itera…
|
/PHP-7.4/sapi/cli/tests/ |
H A D | 005.phpt | 62 Method [ <internal:Core> final private method __clone ] { 65 Method [ <internal:Core, ctor> public method __construct ] { 74 Method [ <internal:Core> public method __wakeup ] { 77 Method [ <internal:Core, prototype Throwable> final public method getMessage ] { 80 Method [ <internal:Core, prototype Throwable> final public method getCode ] { 83 Method [ <internal:Core, prototype Throwable> final public method getFile ] { 86 Method [ <internal:Core, prototype Throwable> final public method getLine ] { 89 Method [ <internal:Core, prototype Throwable> final public method getTrace ] { 92 Method [ <internal:Core, prototype Throwable> final public method getPrevious ] { 95 Method [ <internal:Core, prototype Throwable> final public method getTraceAsString ] { [all …]
|