Home
last modified time | relevance | path

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

12345678910>>...41

/PHP-8.2/Zend/tests/
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 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-8.2/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-8.2/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-8.2/Zend/tests/traits/
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-8.2/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-8.2/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-8.2/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.
/PHP-8.2/ext/pdo_mysql/tests/
H A Dpdo_mysql_interface.phpt36 foreach ($methods as $k => $method) {
37 if (isset($expected[$method])) {
38 unset($expected[$method]);
41 if ($method == $classname) {
/PHP-8.2/ext/intl/tests/
H A Dlocale_bug74439.phpt29 foreach ($methods as $method) {
30 $rm = new ReflectionMethod(Locale::class, $method);
31 …printf("%s: %d, %d\n", $method, $rm->getNumberOfParameters(), $rm->getNumberOfRequiredParameters()…
/PHP-8.2/tests/classes/
H A Dstatic_mix_1.phpt2 ZE2 You cannot overload a static method with a non static method
24 Fatal error: Cannot make static method pass::show() non static in class fail in %s on line 10

Completed in 26 milliseconds

12345678910>>...41