Home
last modified time | relevance | path

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

12345

/PHP-7.1/ext/standard/tests/array/
H A Darray_walk_closure.phpt2 array_walk() closure tests
125 closure with array
141 closure with use
157 closure with object
205 closure and exception
210 string(9) "{closure}"
/PHP-7.1/ext/reflection/tests/
H A DReflectionFunction_getClosure_error.phpt6 * Description: Returns a dynamically created closure for the function
19 $closure = $func->getClosure('bar');
H A DReflectionType_001.phpt16 $closure = function (Test $a): Test { return $a; };
22 new ReflectionFunction($closure),
42 new ReflectionMethod($closure, '__invoke'),
64 new ReflectionFunction($closure),
65 new ReflectionMethod($closure, '__invoke'),
/PHP-7.1/Zend/tests/
H A Dbug74164.phpt15 Fatal error: Uncaught Exception: Parameter 1 to Foo\{closure}() expected to be a reference, value g…
17 #0 [internal function]: Foo\{closure}(%s)
H A Dnested_method_and_function.phpt37 string(13) "Baz\{closure}"
38 string(13) "Baz\{closure}"
H A Ddynamic_call_to_ref_returning_function.phpt15 $closure = function &($x) {
18 var_dump($closure->call(new class {}, 42));
H A Dbug64960.phpt16 // this must be a class, closure does not trigger segfault
36 #0 [internal function]: {closure}(8, 'ob_end_clean():...', '%s', 9, Array)
H A Dclosure_027.phpt6 function test(closure $a) {
31 Exception: Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
H A Dclosure_025.phpt2 Closure 025: Using closure in create_function()
H A Dclosure_011.phpt2 Closure 011: Lexical copies not static in closure
H A Dclosure_038.phpt60 #0 %s(%d): Closure->{closure}()
65 #0 %s(%d): Closure->{closure}()
H A Dclosure_039.phpt60 #0 %s(%d): Closure->{closure}()
65 #0 %s(%d): Closure->{closure}()
H A Dclosure_051.phpt2 Closure 051: static::class in static closure in static method.
H A Dclosure_052.phpt2 Closure 052: static::class in non-static closure in static method.
/PHP-7.1/Zend/tests/closures/
H A Dclosure_from_callable_basic.phpt36 echo 'Closure is already a closure';
37 $fn = Closure::fromCallable($closure);
59 echo 'Subclass closure over parent class protected method';
64 echo 'Subclass closure over parent class static protected method';
108 Closure is already a closure OK
113 Subclass closure over parent class protected method OK
114 Subclass closure over parent class static protected method OK
H A Dclosure_from_callable_reflection.phpt27 $closure = Closure::fromCallable($callable);
28 $refl = new ReflectionFunction($closure);
/PHP-7.1/ext/spl/tests/
H A Dspl_autoload_013.phpt5 $closure = function($class) {
22 spl_autoload_register($closure);
/PHP-7.1/sapi/phpdbg/tests/
H A Dexceptions_001.phpt16 prompt> frame #0: {closure}() at %s:16
22 #0 %s(22): {closure}()
H A Dexceptions_002.phpt20 #1 %s(20): {closure}()
26 #0 %s(20): {closure}()
/PHP-7.1/ext/standard/tests/general_functions/
H A Dclosures_001.phpt2 register_shutdown_function() & closure
/PHP-7.1/Zend/tests/return_types/
H A D025.phpt2 Return type of self is allowed in closure
H A D022.phpt2 Hint on closure with lexical vars
/PHP-7.1/Zend/tests/generators/
H A Dyield_closure.phpt2 Generator shouldn't crash if last yielded value is a closure
/PHP-7.1/Zend/tests/type_declarations/
H A Dself_on_closure_in_method.phpt2 self return type on closure in a method
/PHP-7.1/ext/filter/tests/
H A Dcallback_closure.phpt2 callback function is a closure

Completed in 48 milliseconds

12345