Home
last modified time | relevance | path

Searched refs:instance (Results 26 – 50 of 508) sorted by relevance

12345678910>>...21

/PHP-8.3/ext/opcache/tests/gh13433/
H A Dgh13433.phpt16 $instance = new TheClass;
17 var_dump($instance);
18 var_dump($instance->test());
/PHP-8.3/tests/classes/
H A Dstatic_properties_003_error1.phpt2 Attempting to access static properties using instance property syntax
10 echo "\n--> Access non-visible static prop like instance prop:\n";
15 --> Access non-visible static prop like instance prop:
H A Dstatic_properties_003_error2.phpt2 Attempting to access static properties using instance property syntax
10 echo "\n--> Access non-visible static prop like instance prop:\n";
15 --> Access non-visible static prop like instance prop:
H A Dstatic_properties_003_error3.phpt2 Attempting to access static properties using instance property syntax
10 echo "\n--> Access non-visible static prop like instance prop:\n";
15 --> Access non-visible static prop like instance prop:
H A Dstatic_properties_003_error4.phpt2 Attempting to access static properties using instance property syntax
10 echo "\n--> Access non-visible static prop like instance prop:\n";
18 --> Access non-visible static prop like instance prop:
H A Dstatic_properties_003.phpt2 Attempting to access static properties using instance property syntax
13 echo "\n--> Access visible static prop like instance prop:\n";
22 echo "\n--> Access non-visible static prop like instance prop:\n";
30 --> Access visible static prop like instance prop:
47 --> Access non-visible static prop like instance prop:
H A Dtype_hinting_004.phpt49 echo "in C::f1 (instance);\n";
56 echo "in C::f2 (instance);\n";
94 echo "\n\n---> Type hints with callback instance method:\n";
98 echo "in C::f1 (instance);\n";
105 echo "in C::f2 (instance);\n";
168 ---> Type hints with callback instance method:
171 in C::f1 (instance);
174 in C::f2 (instance);
175 in C::f2 (instance);
176 in C::f2 (instance);
H A D__call_006.phpt31 echo "\n\n---> Invoke __call via scope resolution operator within instance.\n";
38 echo "\n\n---> Invoke __call via scope resolution operator within child instance.\n";
60 ---> Invoke __call via scope resolution operator within instance.
66 ---> Invoke __call via scope resolution operator within child instance.
H A Dconstants_basic_004.phpt7 // Static and instance array using class constants
17 // Static and instance array using class constants with self
24 // Static and instance array using class constants with parent
28 // Static and instance array using class constants with self (constants should be inherited)
/PHP-8.3/ext/standard/tests/array/
H A Darray_multisort_variation7.phpt24 'instance of classWithToString' => new classWithToString(),
25 'instance of classWithoutToString' => new classWithoutToString(),
52 ["instance of classWithToString"]=>
57 ["instance of classWithoutToString"]=>
H A Darray_multisort_variation9.phpt24 'instance of classWithToString' => new classWithToString(),
25 'instance of classWithoutToString' => new classWithoutToString(),
62 ["instance of classWithToString"]=>
65 ["instance of classWithoutToString"]=>
/PHP-8.3/ext/standard/tests/class_object/
H A Dget_class_vars_variation2.phpt48 echo "\n-- From inside an object instance --\n";
49 $instance = new Tester();
50 $instance->test();
56 echo "\n-- From inside an parent object instance --\n";
64 echo "\n-- From inside a child object instance --\n";
82 -- From inside an object instance --
114 -- From inside an parent object instance --
138 -- From inside a child object instance --
/PHP-8.3/Zend/tests/
H A Dclosure_041.phpt8 * to having a bound instance. */
47 echo "After binding, no instance", "\n";
53 echo "After binding, with same-class instance for the bound ones", "\n";
59 echo "After binding, with different instance for the bound ones", "\n";
75 After binding, no instance
86 After binding, with same-class instance for the bound ones
88 Warning: Cannot bind an instance to a static closure in %s on line %d
92 Warning: Cannot bind an instance to a static closure in %s on line %d
95 After binding, with different instance for the bound ones
H A Dbug41961.phpt14 echo "Called private " . __METHOD__ . "() on an instance of: " . get_class($this) . "\n";
24 echo "Called public " . __METHOD__ . "() on an instance of: " . get_class($this) . "\n";
29 Called public ChildClass::secret() on an instance of: ChildClass
H A Dbug71275.phpt22 $instance = new MyClass();
23 clone $instance;
H A Dbug69761.phpt5 $instance = new class('foo') {
9 var_dump(serialize($instance));
/PHP-8.3/Zend/tests/readonly_props/
H A Dreadonly_clone_error2.phpt14 $instance = clone $this;
20 $instance = clone $this;
21 $instance->baz++;
H A Dreadonly_clone_error3.phpt16 $instance = clone $this;
22 $instance = clone $this;
23 $instance->baz++;
/PHP-8.3/ext/reflection/tests/
H A DReflectionProperty_setValue_error.phpt18 $instance = new TestClass();
25 $propInfo->setValue($instance, "NewValue");
26 var_dump($propInfo->getValue($instance));
H A Dbug72174.phpt28 $instance = new Foo();
30 var_dump($reflectionBar->getValue($instance));
/PHP-8.3/tests/lang/
H A DforeachLoopObjects.002.phpt172 --> Using instance of C:
192 --> Using instance of D:
217 --> Using instance of E:
247 --> Using instance of C:
267 --> Using instance of D:
292 --> Using instance of E:
322 --> Using instance of C:
376 --> Using instance of D:
446 --> Using instance of E:
526 --> Using instance of C:
[all …]
/PHP-8.3/ext/dom/tests/
H A DDOMProcessingInstruction.phpt51 $instance = $class->newInstanceWithoutConstructor();
54 var_dump($instance->target);
59 var_dump($instance->data);
64 $instance->data = "hello";
/PHP-8.3/Zend/tests/closures/
H A Dclosure_from_callable_error.phpt45 echo 'SubClass cannot access private instance method'."\n";
57 echo 'Cannot access private static function of instance'."\n";
130 echo 'Subclass cannot closure over parent private instance method'."\n";
156 echo 'Function scope cannot closure over protected instance method'."\n";
168 echo 'Function scope cannot closure over private instance method'."\n";
200 SubClass cannot access private instance method
201 Cannot access private static function of instance
207 Subclass cannot closure over parent private instance method
209 Function scope cannot closure over protected instance method
210 Function scope cannot closure over private instance method
[all …]
/PHP-8.3/ext/openssl/tests/
H A DServerClientTestCase.inc72 private static $instance;
76 if (!isset(self::$instance)) {
77 self::$instance = new self($isWorker);
80 return self::$instance;
85 if (!isset(self::$instance)) {
86 self::$instance = $this;
/PHP-8.3/ext/date/tests/
H A DDateTimeZone_extends_basic1.phpt19 echo "\n-- Create an instance of DateTimeZoneExt --\n";
29 -- Create an instance of DateTimeZoneExt --

Completed in 33 milliseconds

12345678910>>...21