Home
last modified time | relevance | path

Searched refs:method (Results 76 – 100 of 847) sorted by relevance

12345678910>>...34

/PHP-7.3/tests/lang/
H A DpassByReference_007.phpt2 Pass function and method calls by reference and by value.
56 echo "\nPass a static method call that returns a value:\n";
61 echo "Pass a static method call that returns a reference:\n";
68 echo "\nPass a method call that returns a value:\n";
73 echo "Pass a method call that returns a reference:\n";
89 Pass a static method call that returns a value:
94 Pass a static method call that returns a reference:
98 Pass a method call that returns a value:
103 Pass a method call that returns a reference:
/PHP-7.3/ext/mysqli/tests/
H A Dmysqli_class_mysqli_result_reflection.phpt40 Inspecting method '__construct'
56 Inspecting method '__construct'
72 Inspecting method 'close'
88 Inspecting method 'data_seek'
111 Inspecting method 'fetch_all'
134 Inspecting method 'fetch_array'
157 Inspecting method 'fetch_assoc'
173 Inspecting method 'fetch_field'
258 Inspecting method 'fetch_row'
274 Inspecting method 'field_seek'
[all …]
/PHP-7.3/Zend/tests/
H A Dbug26802.phpt2 Bug #26802 (Can't call static method using a variable)
16 static $method = 'global_func';
28 $method = 'foo_func';
29 foo::$method();
H A Dobjects_027.phpt2 Testing 'new static;' calling parent method
30 Deprecated: Non-static method foo::test() should not be called statically in %s on line %d
32 Deprecated: Non-static method bar::show() should not be called statically in %s on line %d
38 Deprecated: %son-static method foo::test() should not be called statically in %s on line %d
40 Deprecated: Non-static method bar::show() should not be called statically in %s on line %d
H A Dindirect_call_array_002.phpt2 Indirect method call by array - Invalid method name
11 Fatal error: Uncaught Error: Call to undefined method stdClass::b() in %s:%d
H A Dmethods-on-non-objects-catch.phpt2 Catch method calls on non-objects raise recoverable errors
11 var_dump($x->method());
19 string(%d) "Call to a member function method() on null"
/PHP-7.3/ext/reflection/tests/
H A DReflectionMethod_invokeArgs_error3.phpt54 echo "\nStatic method:\n";
61 echo "\nPrivate method:\n";
68 echo "\nAbstract method:\n";
92 string(72) "Given object is not an instance of the class this method was declared in"
99 Static method:
113 Private method:
114 string(86) "Trying to invoke private method TestClass::privateMethod() from scope ReflectionMethod"
116 Abstract method:
117 string(53) "Trying to invoke abstract method AbstractClass::foo()"
118 string(53) "Trying to invoke abstract method AbstractClass::foo()"
H A DReflectionClass_hasMethod_basic.phpt11 //Check if C has public method publicFoo
14 //Check if C has protected method protectedFoo
17 //Check if C has private method privateFoo
20 //Check if C has static method staticFoo
23 //C should not have method bar
H A DReflectionMethod_getClosure_basic.phpt6 * Description: Returns a dynamically created closure for the method
37 $method = $staticclass->getMethod( 'foo' );
38 $closure = $method->getClosure();
41 $method = $class->getMethod( 'foo' );
43 $closure = $method->getClosure( $object );
H A DReflectionMethod_getClosureThis.phpt27 $method = $staticclass->getMethod( 'foo' );
28 $closure = $method->getClosure();
33 $method = $class->getMethod( 'foo' );
35 $closure = $method->getClosure( $object );
H A Dbug32981.phpt15 foreach ($class->getMethods() as $method)
17 var_dump($method->getName());
18 $arr_static_vars[] = $method->getStaticVariables();
H A DReflectionMethod_setAccessible.phpt96 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"
101 string(77) "Trying to invoke protected method A::aProtected() from scope ReflectionMethod"
102 string(83) "Trying to invoke protected method A::aProtectedStatic() from scope ReflectionMethod"
103 string(83) "Trying to invoke protected method A::aProtectedStatic() from scope ReflectionMethod"
H A DReflectionMethod_getStaticVariables_basic.phpt23 echo "Public method:\n";
27 echo "\nPrivate method:\n";
41 Public method:
51 Private method:
/PHP-7.3/ext/standard/tests/array/
H A Darray_map_object1.phpt12 * 1) simple class with variable and method
14 * 3) class with only one method and no variable
21 echo "-- simple class with public variable and method --\n";
35 echo "\n-- simple class with private variable and method --\n";
45 echo "\n-- simple class with protected variable and method --\n";
78 echo "\n-- class with final method --\n";
127 -- simple class with public variable and method --
138 -- simple class with private variable and method --
144 -- simple class with protected variable and method --
169 -- class with final method --
[all …]
H A Darray_map_object2.phpt2 Test array_map() function : object functionality - with non-existent class and method
15 echo "*** Testing array_map() : with non-existent class and method ***\n";
31 echo "-- with existent class and non-existent method --\n";
37 *** Testing array_map() : with non-existent class and method ***
42 -- with existent class and non-existent method --
44 … parameter 1 to be a valid callback, class 'SimpleClass' does not have a method 'non-existent' in …
/PHP-7.3/ext/openssl/tests/
H A Dopenssl_decrypt_gcm.phpt13 $method = 'aes-128-gcm';
14 $tests = openssl_get_cipher_tests($method);
18 $pt = openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
24 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
27 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
30 var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
H A Dopenssl_x509_fingerprint_basic.phpt16 echo "** Testing hash method md5 **\n";
22 echo "** Testing hash method sha1 with resource **\n";
28 echo "** Testing bad hash method **\n";
38 ** Testing hash method md5 **
42 ** Testing hash method sha1 with resource **
48 ** Testing bad hash method **
H A Dopenssl_encrypt_gcm.phpt13 $method = 'aes-128-gcm';
14 $tests = openssl_get_cipher_tests($method);
18 $ct = openssl_encrypt($test['pt'], $method, $test['key'], OPENSSL_RAW_DATA,
25 var_dump(openssl_encrypt('data', $method, 'password', 0, NULL, $tag, ''));
28 var_dump(openssl_encrypt('data', $method, 'password', 0, str_repeat('x', 32), $tag, '', 20));
31 var_dump(openssl_encrypt('data', $method, 'password', 0, str_repeat('x', 32)));
/PHP-7.3/ext/spl/tests/
H A DCallbackFilterIteratorTest.phpt29 'instance method' => function() { return array(new A, 'test'); },
30 'static method' => function() { return array('B', 'test'); },
31 'static method (2)' => function() { return 'B::test'; },
59 = instance method =
74 = static method =
89 = static method (2) =
H A DRecursiveCallbackFilterIteratorTest.phpt32 'instance method' => function() { return array(new A, 'test'); },
33 'static method' => function() { return array('B', 'test'); },
34 'static method (2)' => function() { return 'B::test'; },
64 = instance method =
79 = static method =
94 = static method (2) =
/PHP-7.3/Zend/tests/nullable_types/
H A Dcontravariant_nullable_param_succeeds.phpt7 function method(int $p);
11 function method(?int $p) { }
15 $b->method(null);
/PHP-7.3/ext/xmlrpc/tests/
H A Dbug61097.phpt9 $method = 'abc';
10 xmlrpc_server_register_introspection_callback($server, $method);
11 xmlrpc_server_register_method($server, 'abc', $method);
H A Dbug51288.phpt7 $method = NULL;
9 var_dump(xmlrpc_decode_request($req, $method));
10 var_dump($method);
/PHP-7.3/ext/fileinfo/tests/
H A Dprecedural_finfo_in_method.phpt2 Using procedural finfo API in a method
9 public function method() {
16 $test->method();
/PHP-7.3/Zend/tests/traits/
H A Dno_static_arg_binding.phpt7 public static function method($arg) {
11 self::method($i);
19 public static function method(&$arg) {

Completed in 31 milliseconds

12345678910>>...34