Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 816) sorted by relevance

12345678910>>...33

/PHP-7.0/Zend/tests/
H A Dbug55247.phpt16 $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 Dindirect_call_string_002.phpt2 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 Dbug68475.phpt2 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 Dindirect_call_string_001.phpt2 Indirect call with 'Class::method' syntax with class in namespace
11 echo "Static method called!\n";
16 printf("Static method called with args: %s, %s, %s\n", $arg1, $arg2, $arg3);
23 // Test basic call using Class::method syntax.
42 Static method called!
43 Static method called!
44 Static method called with args: arg1, arg2, arg3
45 Static method called with args: arg1, arg2, arg3
H A Dindirect_call_from_constant.phpt8 public static function method()
14 ['Test', 'method']();
16 'Test::method'();
18 (['Test', 'method'])();
20 ('Test::method')();
/PHP-7.0/ext/reflection/tests/
H A DReflectionClass_toString_001.phpt57 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 ] {
221 Method [ <internal:Reflection> public method isTrait ] {
[all …]
H A DReflectionMethod_getModifiers_basic.phpt10 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 DReflectionMethod_basic2.phpt6 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()
70 Reflecting on method TestClass::stat()
86 Reflecting on method TestClass::priv()
89 string(%d) "Method [ <user> private method priv ] {
102 Reflecting on method TestClass::prot()
118 Reflecting on method DerivedClass::prot()
134 Reflecting on method TestInterface::int()
[all …]
H A Dclosures_003_v1.phpt8 $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 Dclosures_003.phpt8 $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 Dbug60367.phpt21 $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());
H A DReflectionMethod_basic3.phpt6 function reflectMethod($class, $method) {
7 $methodInfo = new ReflectionMethod($class, $method);
9 echo "Reflecting on method $class::$method()\n\n";
57 Reflecting on method DerivedClass::foo()
71 Reflecting on method TestClass::stat()
85 Reflecting on method TestClass::priv()
99 Reflecting on method TestClass::prot()
113 Reflecting on method DerivedClass::prot()
127 Reflecting on method TestInterface::int()
141 Reflecting on method ReflectionProperty::__construct()
[all …]
H A DReflectionMethod_basic4.phpt6 function reflectMethod($class, $method) {
7 $methodInfo = new ReflectionMethod($class, $method);
9 echo "Reflecting on method $class::$method()\n\n";
60 Reflecting on method DerivedClass::foo()
74 Reflecting on method TestClass::stat()
88 Reflecting on method TestClass::priv()
102 Reflecting on method TestClass::prot()
116 Reflecting on method DerivedClass::prot()
130 Reflecting on method TestInterface::int()
144 Reflecting on method ReflectionProperty::__construct()
[all …]
/PHP-7.0/ext/xmlrpc/tests/
H A D002.phpt8 $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.0/ext/oci8/tests/
H A Dreflection2.phpt30 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.0/scripts/dev/generate-phpt/src/testcase/
H A DgtVariationContainerMethod.php7 protected $method; variable in gtVariationContainerMethod
18 * @param gtMethod $method
20 public function setMethod(gtMethod $method) { argument
21 $this->method = $method;
31 …$numberOfArguments = count($this->method->getMandatoryArgumentNames()) + count($this->method->getO…
38 $testCase->setUp($this->method, $i, $d);
/PHP-7.0/ext/mysqli/tests/
H A Dreflection_tools.inc18 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.0/Zend/tests/traits/
H A Dbug64235.phpt2 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 Dbug64235b.phpt2 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.0/scripts/dev/generate-phpt/src/
H A Dgenerate-phpt.php47 $method = new gtMethod($options->getOption('c'), $options->getOption('m')); variable
49 $method->setArgumentNames();
50 $method->setArgumentLists();
51 $method->setInitialisationStatements();
53 $method->setConstructorArgumentNames();
54 $method->setConstructorInitStatements();
55 $method->setConstructorArgumentList();
70 $testCase->setMethod($method);
83 $testCase->setMethod($method);
98 $testCaseContainer->setMethod($method);
/PHP-7.0/ext/openssl/tests/
H A Dopenssl_decrypt_basic.phpt8 $method = "AES-128-CBC";
11 $ivlen = openssl_cipher_iv_length($method);
16 $encrypted = openssl_encrypt($data, $method, $password, 0, $iv);
17 $output = openssl_decrypt($encrypted, $method, $password, 0, $iv);
19 $encrypted = openssl_encrypt($data, $method, $password, OPENSSL_RAW_DATA, $iv);
20 $output = openssl_decrypt($encrypted, $method, $password, OPENSSL_RAW_DATA, $iv);
24 $encrypted = openssl_encrypt($padded_data, $method, $password, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDIN…
25 $output = openssl_decrypt($encrypted, $method, $password, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING, $i…
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_print.c55 switch (method->type) { in phpdbg_print_function_helper()
64 if (method->common.scope) { in phpdbg_print_function_helper()
68 ZSTR_VAL(method->common.scope->name), in phpdbg_print_function_helper()
77 method->common.function_name ? ZSTR_VAL(method->common.function_name) : "{main}", in phpdbg_print_function_helper()
96 if (method->common.scope) { in phpdbg_print_function_helper()
168 zend_function *method; in PHPDBG_PRINT() local
171 phpdbg_print_function_helper(method); in PHPDBG_PRINT()
183 PHPDBG_PRINT(method) /* {{{ */ in PHPDBG_PRINT() argument
187 if (phpdbg_safe_class_lookup(param->method.class, strlen(param->method.class), &ce) == SUCCESS) { in PHPDBG_PRINT()
321 zend_function *method; in phpdbg_print_opcodes_ce() local
[all …]
/PHP-7.0/ext/standard/tests/array/
H A Darray_map_object3.phpt12 * 1) child class method using parent object
13 * 2) parent class method using child object
14 * 3) child class method using parent class
15 * 4) parent class method using child class
50 echo "-- accessing parent method from child class --\n";
53 echo "-- accessing child method from parent class --\n";
56 echo "-- accessing parent method using child class object --\n";
66 -- accessing parent method from child class --
75 -- accessing child method from parent class --
79 -- accessing parent method using child class object --
[all …]
/PHP-7.0/sapi/cli/tests/
H A D005.phpt65 Method [ <internal:Core> final private method __clone ] {
68 Method [ <internal:Core, ctor> public method __construct ] {
77 Method [ <internal:Core> public method __wakeup ] {
80 Method [ <internal:Core, prototype Throwable> final public method getMessage ] {
83 Method [ <internal:Core, prototype Throwable> final public method getCode ] {
86 Method [ <internal:Core, prototype Throwable> final public method getFile ] {
89 Method [ <internal:Core, prototype Throwable> final public method getLine ] {
92 Method [ <internal:Core, prototype Throwable> final public method getTrace ] {
95 Method [ <internal:Core, prototype Throwable> final public method getPrevious ] {
98 Method [ <internal:Core, prototype Throwable> final public method getTraceAsString ] {
[all …]
/PHP-7.0/ext/soap/interop/
H A Dclient_round2.php38 $method = $x->test_name;
39 if ($method != $prev_method) {
40 $prev_method = $method;
42 if ($sel_method == $method) $selected = ' SELECTED';
43 echo "<option value='$method'$selected>$method</option>\n";
49 function endpointTestForm($test, $endpoint, $method, $paramType, $useWSDL) argument
58 methodList($test, $method);

Completed in 37 milliseconds

12345678910>>...33