Home
last modified time | relevance | path

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

12345678910>>...41

/php-src/ext/standard/tests/array/
H A Darray_reduce_variation3.phpt14 echo "\n--- Static method callback ---\n";
17 echo "\n--- Instance method callback ---\n";
24 --- Static method callback ---
27 --- Instance method callback ---
/php-src/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-src/ext/reflection/tests/internal_parameter_default_value/
H A DReflectionParameter_toString_Internal.phpt6 $method = $class->getMethod('setTime');
8 foreach ($method->getParameters() as $k => $parameter) {
15 $method = $class->getMethod('listIdentifiers');
17 foreach ($method->getParameters() as $parameter) {
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-src/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-src/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 {
/php-src/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
/php-src/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-src/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-src/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) =
/php-src/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-src/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-src/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 25 milliseconds

12345678910>>...41