Home
last modified time | relevance | path

Searched refs:method (Results 101 – 125 of 830) sorted by relevance

12345678910>>...34

/PHP-7.4/ext/reflection/tests/
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 DReflectionParameter_ctor_cast.phpt2 Test method name string cast in ReflectionParameter ctor
10 new class { public function __toString() { return 'method'; } }
18 Method A::method() does not exist
H A Dbug32981.phpt15 foreach ($class->getMethods() as $method)
17 var_dump($method->getName());
18 $arr_static_vars[] = $method->getStaticVariables();
H A DReflectionMethod_getStaticVariables_basic.phpt23 echo "Public method:\n";
27 echo "\nPrivate method:\n";
41 Public method:
51 Private method:
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"
/PHP-7.4/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload3.phpt9 public function method(): X {}
14 public function method(): Y {}
19 public function method(): A {}
24 public function method(): B {}
H A Dclass_order_autoload4.phpt10 public function method(): X {}
15 public function method(): Y {}
20 public function method(): A;
25 public function method(): B;
/PHP-7.4/Zend/tests/
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 Dbug80126.phpt7 public function method(): I;
11 public function method(): I { }
17 public function method(): C2 { }
H A Dbug80126_2.phpt7 public function method(): I;
11 public function method(): I {
21 public function method(): C2 { }
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"
H A Dbug30451.phpt10 protected static function method() {
20 var_dump(self::method());
21 var_dump(parent::method());
H A Dns_010.phpt14 echo "method ok\n";
33 method ok
34 method ok
35 method ok
H A Dbug21888.phpt2 Bug #21888 (protected property and protected method of the same name)
10 print "protected method\n";
31 protected method
H A Dbug78344.phpt12 public function method() {
16 (new C)->method();
22 #0 %s(%d): C->method()
H A Dstatic_variable_in_private_trait_method.phpt2 Behavior of static variable in private trait method
7 private static function method() {
14 return self::method();
/PHP-7.4/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.4/ext/xmlrpc/tests/
H A Dbug51288.phpt7 $method = NULL;
9 var_dump(xmlrpc_decode_request($req, $method));
10 var_dump($method);
/PHP-7.4/ext/spl/tests/
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.4/ext/standard/tests/array/
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.4/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) {
/PHP-7.4/ext/openssl/tests/
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)));
H A Dopenssl_encrypt_ocb.phpt13 $method = 'aes-128-ocb';
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', 12), $tag, '', 20));
31 var_dump(openssl_encrypt('data', $method, 'password', 0, str_repeat('x', 12)));
/PHP-7.4/Zend/tests/traits/bugs/
H A Dalias-semantics02.phpt3 method body of the original method.
4 It should also work incase the method is fully qualified.

Completed in 52 milliseconds

12345678910>>...34