Lines Matching refs:Closure
2 Closure comparison
9 $closures[0] = Closure::fromCallable('foo');
10 $closures[1] = Closure::fromCallable('foo');
14 $closures[0] = Closure::fromCallable('strlen');
15 $closures[1] = Closure::fromCallable('strlen');
19 $closures[0] = Closure::fromCallable('strlen');
20 $closures[1] = Closure::fromCallable('strrev');
48 $closures[0] = Closure::fromCallable([Foo::class, "existsStatic"]);
49 $closures[1] = Closure::fromCallable([Bar::class, "existsStatic"]);
55 $closures[0] = Closure::fromCallable([$foo, "exists"]);
62 $closures[0] = Closure::fromCallable([$foo, "traitMethod"]);
63 $closures[1] = Closure::fromCallable([$baz, "traitMethod"]);
67 $closures[0] = Closure::fromCallable([$foo, "traitMethod"]);
68 $closures[1] = Closure::fromCallable([$foo, "aliasMethod"]);
72 $closures[0] = Closure::fromCallable([$foo, "exists"]);
73 $closures[1] = Closure::fromCallable([$foo, "exists"]);
77 $closures[0] = Closure::fromCallable([$foo, "method"]);
78 $closures[1] = Closure::fromCallable([$foo, "method"]);
86 $closures[0] = Closure::fromCallable([$foo, "method"]);
87 $closures[1] = Closure::fromCallable([$foo, "method2"]);
91 $closures[2] = Closure::fromCallable([$closures[0], "__invoke"]);
92 $closures[3] = Closure::fromCallable([$closures[1], "__invoke"]);
94 printf("Closure[0]::invoke != Closure[1]::invoke: %s\n", $closures[2] != $closures[3] ? "OK" : "FAI…
96 $closures[2] = Closure::fromCallable([$closures[0], "__invoke"]);
97 $closures[3] = Closure::fromCallable([$closures[0], "__invoke"]);
99 printf("Closure[0]::invoke == Closure[0]::invoke: %s\n", $closures[2] == $closures[3] ? "OK" : "FAI…
113 Closure[0]::invoke != Closure[1]::invoke: OK
114 Closure[0]::invoke == Closure[0]::invoke: OK