Home
last modified time | relevance | path

Searched refs:method (Results 126 – 150 of 1011) sorted by relevance

12345678910>>...41

/PHP-8.2/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload_error2.phpt10 public function method(B $x) {}
14 public function method(C $x) {}
27 Fatal error: Declaration of B::method(C $x) must be compatible with A::method(B $x) in %s on line %d
H A Dparent_in_class_success.phpt9 public function method(parent $x) {}
12 public function method(P2 $x) {}
18 public function method($x): parent {}
21 public function method($x): parent {}
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-8.2/Zend/tests/
H A Dfirst_class_callable_004.phpt6 private function method() {
11 return $this->method(...);
21 Foo::method
H A Dbug80126.phpt7 public function method(): I;
11 public function method(): I { }
17 public function method(): C2 { }
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 Dfirst_class_callable_errors.phpt53 Call to undefined method stdClass::doesNotExist()
54 Call to undefined method stdClass::doesNotExist()
55 Call to undefined method stdClass::doesNotExist()
56 Call to private method Test::privateMethod() from global scope
57 Non-static method Test::instanceMethod() cannot be called statically
H A Dbug80126_2.phpt7 public function method(): I;
11 public function method(): I {
21 public function method(): C2 { }
/PHP-8.2/Zend/tests/traits/
H A Dabstract_method_8.phpt2 Abstract method in trait using "self"
7 abstract private function method(self $x): self;
13 private function method(self $x): self {
H A Dno_static_arg_binding.phpt7 public static function method($arg) {
11 self::method($i);
19 public static function method(&$arg) {
/PHP-8.2/ext/reflection/tests/
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_invoke_error1.phpt44 echo "\nPrivate method:\n";
47 echo "\nAbstract method:\n";
61 string(72) "Given object is not an instance of the class this method was declared in"
63 Private method:
67 Abstract method:
68 string(53) "Trying to invoke abstract method AbstractClass::foo()"
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();
/PHP-8.2/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, '', $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, '', $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-8.2/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'; },
65 = instance method =
80 = static method =
95 = static method (2) =
H A Dspl_autoload_007.phpt55 … ($callback) must be a valid callback or null, class MyAutoLoader does not have a method "notExist"
58 …#1 ($callback) must be a valid callback or null, cannot access protected method MyAutoLoader::noAc…
64 …(): Argument #1 ($callback) must be a valid callback or null, non-static method MyAutoLoader::dyna…
72 … ($callback) must be a valid callback or null, class MyAutoLoader does not have a method "notExist"
80 …#1 ($callback) must be a valid callback or null, cannot access protected method MyAutoLoader::noAc…
96 …(): Argument #1 ($callback) must be a valid callback or null, non-static method MyAutoLoader::dyna…
105 … ($callback) must be a valid callback or null, class MyAutoLoader does not have a method "notExist"
114 …#1 ($callback) must be a valid callback or null, cannot access protected method MyAutoLoader::noAc…
/PHP-8.2/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-8.2/ext/reflection/tests/internal_parameter_default_value/
H A DReflectionParameter_getDefaultValue_Internal.phpt6 $method = $class->getMethod('setTime');
8 foreach ($method->getParameters() as $k => $parameter) {
19 $method = $class->getMethod('listIdentifiers');
21 foreach ($method->getParameters() as $parameter) {
H A DReflectionParameter_isDefaultValueConstant_Internal.phpt6 $method = $class->getMethod('setTime');
8 foreach ($method->getParameters() as $parameter) {
19 $method = $class->getMethod('listIdentifiers');
21 foreach ($method->getParameters() as $parameter) {
/PHP-8.2/ext/standard/tests/strings/
H A Dstrval_error.phpt11 // no toString() method defined
14 // Testing strval with a object which has no toString() method
15 echo "\n-- Testing strval() function with object which has not toString() method --\n";
26 -- Testing strval() function with object which has not toString() method --
/PHP-8.2/Zend/tests/traits/bugs/
H A Dgh13177.phpt46 Method [ <user, ctor> final private method __construct ] {
50 Method [ <user, ctor> final private method __construct ] {
54 Method [ <user, ctor> final private method __construct ] {
58 Method [ <user, ctor> final private method __construct ] {
63 Fatal error: Cannot override final method Foo3::__construct() in %s on line %d

Completed in 32 milliseconds

12345678910>>...41