/PHP-7.2/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 | 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 | 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 | bug26697.phpt | 17 {closure}(NotExistingClass) 19 {closure}(NotExistingClass), done
|
H A D | closure_007.phpt | 26 $closure = $getClosure(); 28 $closure();
|
H A D | closure_043.phpt | 5 /* Whether it's scoped or not, a static closure cannot have 58 Warning: Cannot bind an instance to a static closure in %s on line %d 60 Warning: Cannot bind an instance to a static closure in %s on line %d 70 Warning: Cannot bind an instance to a static closure in %s on line %d 72 Warning: Cannot bind an instance to a static closure in %s on line %d
|
H A D | bug72057.phpt | 16 #0 %s(%d): {closure}(8, 'A non well form...', '%s', %d, Array) 17 #1 %s(%d): {closure}('7as')
|
/PHP-7.2/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.2/ext/reflection/tests/ |
H A D | ReflectionFunction_isClosure_basic.phpt | 12 $closure = function($param) { return "this is a closure"; }; 13 $rc = new ReflectionFunction($closure);
|
H A D | ReflectionMethod_getClosureThis.phpt | 32 $closure = $method->getClosure(); 33 $rf = new ReflectionFunction($closure); 39 $closure = $method->getClosure( $object ); 40 $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 | ReflectionGenerator_in_Generator.phpt | 44 string(9) "{closure}" 55 string(9) "{closure}" 67 string(9) "{closure}"
|
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 | ReflectionClass_isCloneable_001.phpt | 32 $closure = function () { }; 33 $obj = new ReflectionClass($closure); 35 $obj = new ReflectionObject($closure); 37 $h = clone $closure;
|
/PHP-7.2/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.2/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.2/Zend/tests/variadic/ |
H A D | closure_invoke.phpt | 6 $closure = function(&...$refs) {}; 7 $closure->__invoke(
|
/PHP-7.2/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.2/Zend/tests/type_declarations/ |
H A D | scalar_none.phpt | 38 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec… 40 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec… 42 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec… 44 *** Caught Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
|
H A D | callable_002.phpt | 11 $closure = function (callable $arg) {}; 19 $rc = new ReflectionFunction($closure);
|
H A D | scalar_null.phpt | 40 *** Caught Argument 1 passed to {closure}() must be of the type integer, null given, called in %s o… 42 *** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on … 44 *** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on… 46 *** Caught Argument 1 passed to {closure}() must be of the type boolean, null given, called in %s o…
|