Home
last modified time | relevance | path

Searched refs:closure (Results 51 – 75 of 231) sorted by relevance

12345678910

/PHP-8.2/ext/curl/tests/
H A Dcurl_basic_006.phpt2 Test curl_opt() function with CURLOPT_WRITEFUNCTION parameter set to a closure
14 echo '*** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***' . "\n";
33 *** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***
/PHP-8.2/ext/standard/tests/general_functions/
H A Dbug66094.phpt6 register_tick_function($closure = function () { echo "Tick!\n"; });
7 unregister_tick_function($closure);
/PHP-8.2/Zend/tests/
H A Dclosure_006.phpt12 $closure = $getClosure (2);
13 $closure ();
H A Dclosure_call_leak_with_exception.phpt7 $closure = function($foo) { var_dump($foo); };
8 $closure(yield);
H A Dbug77627.phpt8 $closure = function(){};
10 var_dump(method_exists($closure, "__INVOKE"));
H A Dgh8810_3.phpt2 GH-8810: Fix reported line number of multi-line closure call
17 #0 %s(6): {closure}('foo')
H A Dclosure_059.phpt37 Exception: {closure}(): Argument #1 ($a) must be of type A, B given, called in %s on line %d
38 Exception: {closure}(): Argument #1 ($a) must be of type A, B given
39 Exception: {closure}(): Argument #1 ($a) must be of type A, B given
H A Dbug26697.phpt16 {closure}(NotExistingClass)
18 {closure}(NotExistingClass), done
H A Dbug81626.phpt13 $closure = Closure::fromCallable([TestClass::class, 'foo']);
14 var_dump($closure());
H A Dclosure_007.phpt26 $closure = $getClosure();
28 $closure();
H A Dclosure_043.phpt5 /* Whether it's scoped or not, a static closure cannot have
59 Warning: Cannot bind an instance to a static closure in %s on line %d
61 Warning: Cannot bind an instance to a static closure in %s on line %d
71 Warning: Cannot bind an instance to a static closure in %s on line %d
73 Warning: Cannot bind an instance to a static closure in %s on line %d
H A Dclosure_033.phpt2 Closure 033: Dynamic closure property and private function
26 {closure}()
/PHP-8.2/Zend/tests/variadic/
H A Dclosure_invoke.phpt6 $closure = function(&...$refs) {};
7 $closure->__invoke(
/PHP-8.2/Zend/tests/type_declarations/
H A Dscalar_none.phpt29 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
31 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
33 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
35 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
H A Dscalar_null.phpt30 *** Caught {closure}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
32 *** Caught {closure}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
34 *** Caught {closure}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
36 *** Caught {closure}(): Argument #1 ($b) must be of type bool, null given, called in %s on line %d
/PHP-8.2/ext/reflection/tests/types/
H A DReflectionType_002.phpt6 $closure = function(Test $x): Test2 { return new Test2($x); };
7 $rm = new ReflectionMethod($closure, '__invoke');
/PHP-8.2/ext/zend_test/tests/
H A Dobserver_fiber_functions_02.phpt34 <!-- init {closure}() -->
35 <{closure}>
51 </{closure}>
H A Dobserver_fiber_functions_01.phpt35 <!-- init {closure}() -->
36 <{closure}>
54 </{closure}>
/PHP-8.2/ext/reflection/tests/
H A DReflectionClass_isCloneable_001.phpt33 $closure = function () { };
34 $obj = new ReflectionClass($closure);
36 $obj = new ReflectionObject($closure);
38 $h = clone $closure;
H A DReflectionFunction_getClosureCalledClass.phpt25 echo static::class.'::{closure}'."\n";
69 echo "{closure}\n";
106 B::{closure}
108 {closure}
H A Ddefault_value_internal_userland_arginfo.phpt5 $closure = function ($b = 0) {};
6 $ro = new ReflectionObject($closure);
/PHP-8.2/Zend/tests/function_arguments/
H A Dcall_with_trailing_comma_basic.phpt53 'closure',
90 {closure}
93 string(7) "closure"
/PHP-8.2/ext/standard/tests/array/
H A Dbug52719.phpt15 Warning: {closure}(): Argument #3 ($userdata) must be passed by reference, value given in %s on lin…
17 Warning: {closure}(): Argument #3 ($userdata) must be passed by reference, value given in %s on lin…
/PHP-8.2/Zend/tests/return_types/
H A D013.phpt18 Fatal error: Uncaught TypeError: foo::{closure}(): Return value must be of type array, null returne…
20 #0 %s(%d): foo->{closure}()
/PHP-8.2/ext/opcache/tests/jit/
H A Dfetch_dim_rw_004.phpt15 Fatal error: Uncaught TypeError: {closure}(): Argument #1 ($y) must be of type y, int given, called…
17 #0 %sfetch_dim_rw_004.php(5): {closure}(2, 'Undefined varia...', '%s', 5)

Completed in 27 milliseconds

12345678910