Searched refs:Closure (Results 1 – 25 of 112) sorted by relevance
12345
/PHP-7.1/Zend/tests/closures/ |
H A D | closure_from_callable.inc | 58 return Closure::fromCallable([$this, 'privateInstanceFunc']); 73 return Closure::fromCallable([$this, 'publicInstanceFunc']); 78 return Closure::fromCallable([$this, 'publicInstanceFunc']); 83 return Closure::fromCallable('self::publicInstanceFunc'); 99 return Closure::fromCallable([$this, 'privateInstanceFunc']); 114 return Closure::fromCallable('parent::publicInstanceFunc'); 119 return Closure::fromCallable('self::publicInstanceFunc'); 125 return Closure::fromCallable('self::protectedInstanceFunc'); 130 return Closure::fromCallable('self::privateInstanceFunc'); 176 return Closure::fromCallable([$foo, 'privateStaticFunction']); [all …]
|
H A D | closure_from_callable_basic.phpt | 2 Testing Closure::fromCallable() functionality: Basic 9 $fn = Closure::fromCallable(['Foo', 'publicStaticFunction']); 13 $fn = Closure::fromCallable(['fOo', 'publicStaticfUNCTION']); 17 $fn = Closure::fromCallable('Foo::publicStaticFunction'); 21 $fn = Closure::fromCallable([new Foo, 'publicInstanceFunc']); 29 $fn = Closure::fromCallable('bar'); 33 $fn = Closure::fromCallable('BAR'); 36 echo 'Closure is already a closure'; 37 $fn = Closure::fromCallable($closure); 41 $fn = Closure::fromCallable(new PublicInvokable); [all …]
|
H A D | closure_from_callable_lsb.phpt | 2 Testing Closure::fromCallable() functionality: Late static binding 15 Closure::fromCallable(['A', 'test'])(); 16 Closure::fromCallable(['B', 'test'])();
|
H A D | closure_from_callable_rebinding.phpt | 2 Testing Closure::fromCallable() functionality: Rebinding 15 $fn = Closure::fromCallable([new A, 'method']);
|
H A D | closure_from_callable_non_static_statically.phpt | 2 Testing Closure::fromCallable() functionality: Getting non-static method statically 12 $fn = Closure::fromCallable(['A', 'method']);
|
/PHP-7.1/Zend/tests/ |
H A D | bug52193.phpt | 38 object(Closure)#%d (0) { 44 object(Closure)#%d (1) { 50 object(Closure)#%d (0) { 56 object(Closure)#%d (1) { 62 object(Closure)#%d (0) { 69 object(Closure)#%d (0) { 74 object(Closure)#%d (0) {
|
H A D | closure_042.phpt | 2 Closure 042: Binding an instance to a non-scoped non-static closures gives it a dummy scope 12 var_dump($rm->getClosureScopeClass()->name); //dummy sope is Closure 18 var_dump($rm->getClosureScopeClass()->name); //dummy sope is Closure 24 string(7) "Closure" 27 string(7) "Closure"
|
H A D | closure_032.phpt | 2 Closure 032: Testing Closure and debug_backtrace 54 [0] => Closure Object 69 #1 test(Closure Object ()) called at [%s:%d]
|
H A D | closure_022.phpt | 2 Closure 022: Closure properties 11 Fatal error: Uncaught Error: Closure object cannot have properties in %sclosure_022.php:5
|
H A D | closure_016.phpt | 2 Closure 016: closures and is_callable() 45 Closure::__invoke 47 Closure::__invoke 49 Closure::__invoke 51 Closure::__invoke
|
H A D | closure_031.phpt | 2 Closure 031: Closure properties with custom error handlers 18 Error: Closure object cannot have properties
|
H A D | closure_038.phpt | 2 Closure 038: Rebinding closures, change scope, different runtime type 34 $cb2 = Closure::bind($ca, $b, $b); 41 $cb2 = Closure::bind($ca, $b, 'B'); 60 #0 %s(%d): Closure->{closure}() 65 #0 %s(%d): Closure->{closure}()
|
H A D | closure_039.phpt | 2 Closure 039: Rebinding closures, change scope, same runtime type 34 $cb2 = Closure::bind($ca, $b, $b); 41 $cb2 = Closure::bind($ca, $b, 'B'); 60 #0 %s(%d): Closure->{closure}() 65 #0 %s(%d): Closure->{closure}()
|
H A D | closure_015.phpt | 2 Closure 015: converting to string/unicode 17 Error: Object of class Closure could not be converted to string at %sclosure_015.php(8) 19 Error: Object of class Closure could not be converted to string at %sclosure_015.php(10)
|
H A D | closure_026.phpt | 2 Closure 026: Assigning a closure object to an array in $this 35 object(Closure)#%d (1) { 46 object(Closure)#%d (1) {
|
H A D | closure_040.phpt | 2 Closure 040: Rebinding closures, bad arguments 39 Warning: Closure::bindTo() expects parameter 1 to be object, array given in %s on line 25 41 Warning: Closure::bindTo() expects at most 2 parameters, 3 given in %s on line %d 43 Warning: Closure::bindTo() expects at least 1 parameter, 0 given in %s on line %d
|
H A D | closure_034.phpt | 2 Closure 033: Recursive var_dump on closures 12 object(Closure)#%d (1) {
|
H A D | closure_023.phpt | 2 Closure 023: Closure declared in statically called method
|
H A D | closure_010.phpt | 2 Closure 010: Closure calls itself
|
H A D | bug75290.phpt | 12 object(Closure)#2 (1) { 19 object(Closure)#2 (1) {
|
H A D | closure_024.phpt | 2 Closure 024: Clone the Closure object
|
H A D | closure_027.phpt | 2 Closure 027: Testing Closure type-hint 33 Fatal error: Uncaught TypeError: Argument 1 passed to test() must be an instance of Closure, instan…
|
H A D | 037.phpt | 2 Trying to access inexistent static property of Closure 19 Fatal error: Uncaught Error: Access to undeclared static property: Closure::$x in %s:%d
|
H A D | call_user_func_003.phpt | 24 object(Closure)#%d (1) { 28 object(Closure)#%d (0) {
|
/PHP-7.1/ext/reflection/tests/ |
H A D | bug52057.phpt | 2 Bug #52057 (ReflectionClass fails on Closure class) 38 string(7) "Closure" 40 string(17) "Closure::__invoke" 45 string(7) "Closure" 47 string(17) "Closure::__invoke" 52 string(7) "Closure" 54 string(17) "Closure::__invoke"
|
Completed in 22 milliseconds
12345