Lines Matching refs:fn
9 $fn = Closure::fromCallable(['Foo', 'publicStaticFunction']);
10 echo $fn(" OK".PHP_EOL);
13 $fn = Closure::fromCallable(['fOo', 'publicStaticfUNCTION']);
14 echo $fn(" OK".PHP_EOL);
17 $fn = Closure::fromCallable('Foo::publicStaticFunction');
18 echo $fn(" OK".PHP_EOL);
21 $fn = Closure::fromCallable([new Foo, 'publicInstanceFunc']);
22 echo $fn(" OK".PHP_EOL);
25 $fn = Closure::fromCallable([new Foo, 'publicInstanceFunc']);
26 echo $fn(" OK".PHP_EOL);
29 $fn = Closure::fromCallable('bar');
30 echo $fn(" OK".PHP_EOL);
33 $fn = Closure::fromCallable('BAR');
34 echo $fn(" OK".PHP_EOL);
37 $fn = Closure::fromCallable($closure);
38 echo $fn(" OK".PHP_EOL);
41 $fn = Closure::fromCallable(new PublicInvokable);
42 echo $fn(" OK".PHP_EOL);
46 $fn = $foo->closePrivateValid();
47 echo $fn(" OK".PHP_EOL);
51 $fn = $foo->closePrivateStatic();
52 echo $fn(" OK".PHP_EOL);
56 $fn = $subFoo->closeProtectedStaticMethod();
57 echo $fn(" OK".PHP_EOL);
61 $fn = $subFoo->closeProtectedValid();
62 echo $fn(" OK".PHP_EOL);
66 $fn = $subFoo->closeProtectedStaticMethod();
67 echo $fn(" OK".PHP_EOL);
71 $fn = $subFoo->getParentPublicInstanceMethod();
72 echo $fn(" OK".PHP_EOL);
76 $fn = $foo->getSelfColonPublicInstanceMethod();
77 echo $fn(" OK".PHP_EOL);
81 $fn = $foo->getSelfColonParentPublicInstanceMethod();
82 echo $fn(" OK".PHP_EOL);
86 $fn = $foo->getSelfColonParentProtectedInstanceMethod();
87 echo $fn(" OK".PHP_EOL);
90 $fn = Closure::fromCallable([new MagicCall, 'nonExistentMethod']);
91 echo $fn(" OK".PHP_EOL);
94 $fn = Closure::fromCallable(['MagicCall', 'nonExistentMethod']);
95 echo $fn(" OK".PHP_EOL);