/PHP-7.4/Zend/tests/ |
H A D | closure_029.phpt | 6 var_dump(function() { } instanceof closure); 7 var_dump(function(&$x) { } instanceof closure); 8 var_dump(@function(&$x) use ($y, $z) { } instanceof closure);
|
H A D | closure_061.phpt | 121 Cannot rebind scope of closure created from function 160 Cannot bind an instance to a static closure 163 Cannot bind an instance to a static closure 166 Cannot rebind scope of closure created from method 169 Cannot rebind scope of closure created from method 172 Cannot rebind scope of closure created from method 192 Cannot rebind scope of closure created from method 195 Cannot rebind scope of closure created from method 198 Cannot rebind scope of closure created from method 219 Cannot rebind scope of closure created from method [all …]
|
H A D | 037.phpt | 6 namespace closure; 8 class closure { static $x = 1;} 11 var_dump(closure::$x);
|
H A D | bug31102.phpt | 41 {closure}(Test1,1) 43 {closure}(Test2,2) 44 Caught: {closure} 45 {closure}(Test3,3)
|
H A D | closure_006.phpt | 12 $closure = $getClosure (2); 13 $closure ();
|
H A D | closure_call_leak_with_exception.phpt | 7 $closure = function($foo) { var_dump($foo); }; 8 $closure(yield);
|
H A D | bug26697.phpt | 17 {closure}(NotExistingClass) 19 {closure}(NotExistingClass), done
|
H A D | bug81626.phpt | 13 $closure = Closure::fromCallable([TestClass::class, 'foo']); 14 var_dump($closure());
|
H A D | closure_059.phpt | 36 Exception: Argument 1 passed to {closure}() must be an instance of A, instance of B %s 37 Exception: Argument 1 passed to {closure}() must be an instance of A, instance of B %s 38 Exception: Argument 1 passed to {closure}() must be an instance of A, instance of B %s
|
H A D | closure_007.phpt | 26 $closure = $getClosure(); 28 $closure();
|
/PHP-7.4/ext/reflection/tests/ |
H A D | ReflectionMethod_getClosureThis.phpt | 28 $closure = $method->getClosure(); 29 $rf = new ReflectionFunction($closure); 35 $closure = $method->getClosure( $object ); 36 $rf = new ReflectionFunction($closure);
|
H A D | bug67068.phpt | 2 Bug #67068 (ReflectionFunction::getClosure returns something that doesn't report as a closure) 11 $closure = $reflector->getClosure($object); 13 $closureReflector = new \ReflectionFunction($closure);
|
H A D | closures_003.phpt | 6 $closure = function($a, $b = 0) { }; 8 $method = new ReflectionMethod ($closure, '__invoke'); 15 $parameter = new ReflectionParameter (array ($closure, '__invoke'), 'b');
|
H A D | ReflectionType_002.phpt | 6 $closure = function(Test $x): Test2 { return new Test2($x); }; 7 $rm = new ReflectionMethod($closure, '__invoke');
|
H A D | ReflectionGenerator_in_Generator.phpt | 44 string(9) "{closure}" 55 string(9) "{closure}" 67 string(9) "{closure}"
|
H A D | ReflectionClass_isCloneable_001.phpt | 32 $closure = function () { }; 33 $obj = new ReflectionClass($closure); 35 $obj = new ReflectionObject($closure); 37 $h = clone $closure;
|
/PHP-7.4/Zend/tests/closures/ |
H A D | closure_from_callable_error.phpt | 48 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 60 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 72 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 84 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 96 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 108 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 120 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 208 Subclass cannot closure over parent private instance method 209 Subclass cannot closure over parant private static method 210 Function scope cannot closure over protected instance method [all …]
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | str_replace_array_refs2.phpt | 5 $closure = function (array $array, array $keys, $value) 18 $obj->prop = $closure($obj->prop, ['x'], 'a'); 22 $array = $closure($array, ['x'], 'a');
|
/PHP-7.4/ext/standard/tests/general_functions/ |
H A D | bug66094.phpt | 6 register_tick_function($closure = function () { echo "Tick!\n"; }); 7 unregister_tick_function($closure);
|
/PHP-7.4/Zend/tests/variadic/ |
H A D | closure_invoke.phpt | 6 $closure = function(&...$refs) {}; 7 $closure->__invoke(
|
/PHP-7.4/Zend/tests/type_declarations/ |
H A D | scalar_none.phpt | 28 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec… 30 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec… 32 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec… 34 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
|
H A D | scalar_null.phpt | 30 *** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on li… 32 *** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on … 34 *** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on… 36 *** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on l…
|
H A D | callable_002.phpt | 11 $closure = function (callable $arg) {}; 19 $rc = new ReflectionFunction($closure);
|
/PHP-7.4/ext/curl/tests/ |
H A D | curl_basic_006.phpt | 2 Test curl_opt() function with CURLOPT_WRITEFUNCTION parameter set to a closure 20 echo '*** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***' . "\n"; 39 *** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***
|
/PHP-7.4/Zend/tests/function_arguments/ |
H A D | call_with_trailing_comma_basic.phpt | 53 'closure', 90 {closure} 93 string(7) "closure"
|