Home
last modified time | relevance | path

Searched refs:method (Results 151 – 175 of 1024) sorted by relevance

12345678910>>...41

/php-src/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) {
H A Dbug54441.phpt2 Bug #54441 (Changing trait static method visibility)
19 Fatal error: The modifiers of the trait method dontKnow() are changed, but this method does not exi…
H A Dabstract_method_9.phpt2 Abstract method in trait using "self" (delayed obligation)
9 abstract private function method($x): self;
15 private function method($x): D {
/php-src/ext/spl/tests/
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-src/Zend/tests/
H A Dbug80126_2.phpt7 public function method(): I;
11 public function method(): I {
21 public function method(): C2 { }
H A Daccess_modifiers_008.phpt38 echo B1::ma() . "\n"; // protected method defined also in A
40 echo B1::mp() . "\n"; // protected method defined also in A but as private
57 Call to private method A::mp() from scope B2
59 Call to protected method B1::mp() from scope B2
60 Call to protected method B1::mb() from scope B2
H A Dns_010.phpt14 echo "method ok\n";
34 method ok
35 method ok
36 method ok
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_037.phpt14 echo "method ok\n";
34 method ok
35 method ok
36 method ok
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();
H A Dbug78344.phpt12 public function method() {
16 (new C)->method();
22 #0 %s(%d): C->method()
H A Dbug21888.phpt2 Bug #21888 (protected property and protected method of the same name)
10 print "protected method\n";
31 protected method
/php-src/ext/standard/tests/array/
H A Darray_intersect_uassoc_variation10.phpt10 // define some class with method
23 echo "\n-- Testing array_intersect_uassoc() function using class with static method as callback --\…
27 echo "\n-- Testing array_intersect_uassoc() function using class with regular method as callback --…
34 -- Testing array_intersect_uassoc() function using class with static method as callback --
44 -- Testing array_intersect_uassoc() function using class with regular method as callback --
/php-src/ext/reflection/tests/
H A DReflectionMethod_getClosure_basic.phpt31 $method = $staticclass->getMethod( 'foo' );
32 $closure = $method->getClosure();
35 $method = $class->getMethod( 'foo' );
37 $closure = $method->getClosure( $object );
H A DReflectionMethod_getStaticVariables_basic.phpt23 echo "Public method:\n";
27 echo "\nPrivate method:\n";
41 Public method:
51 Private method:
H A Dbug69180.phpt2 Bug #69180: Reflection does not honor trait conflict resolution / method aliasing
30 foreach ($class->getMethods() as $method) {
31 var_dump($method->getName());
H A Dbug74673.phpt8 public function method($test = PHP_SELF + 1)
34 Method [ <user> public method method ] {
H A Dgh9409.phpt2 GH-9409: Private method is incorrectly dumped as "overwrites"
19 Method [ <user> private method privateMethod ] {
22 Method [ <user> private method privateMethod ] {
H A DReflectionClass_toString_002.phpt2 ReflectionClass::__toString() - verify 'inherits', 'overwrites' and 'prototype' parts of method rep…
45 Method [ <user> public method f ] {
69 Method [ <user, overwrites A, prototype A> public method f ] {
93 Method [ <user, inherits B, prototype A> public method f ] {
117 Method [ <user, overwrites B, prototype A> public method f ] {
H A Dbug64239.phpt18 print_r(($method = $obj->getMethod("Bmethod")));
19 var_dump($method->getName());
20 var_dump($method->getShortName());
/php-src/sapi/cli/tests/
H A Dbug69655.phpt2 Bug #69655 (php -S changes MKCALENDAR request method to MKCOL)
13 foreach (['MKCO', 'MKCOLL', 'M'] as $method) {
14 $context = stream_context_create(['http' => ['method' => $method]]);
/php-src/ext/date/tests/
H A DDateTime_fix_createFromFormat.phpt20 echo "Format method: " . $orig->format("D., M. j, Y g:iA") . "\n";
21 echo "createFromFormat method: " . $fromFormat->format("D., M. j, Y g:iA") . "\n";
26 Format method: Thu., Nov. 29, 2012 5:00PM
27 createFromFormat method: Thu., Nov. 29, 2012 5:00PM
H A DDateTime_extends_basic3.phpt2 Test DateTime class inheritance : with user space format() method
8 echo "*** Testing new DateTime() : with user format() method ***\n";
23 *** Testing new DateTime() : with user format() method ***
/php-src/Zend/tests/traits/bugs/
H A Dalias-semantics02.phpt3 method body of the original method.
4 It should also work in case the method is fully qualified.

Completed in 29 milliseconds

12345678910>>...41