Lines Matching refs:fn

10 	$fn = Closure::fromCallable(['Foo', 'privateInstanceFunc']);
11 echo "Test failed to fail and return was : ".var_export($fn, true)."\n";
23 $fn = Closure::fromCallable('Foo::privateInstanceFunc');
24 echo "Test failed to fail and return was : ".var_export($fn, true)."\n";
35 $fn = Closure::fromCallable([new Foo, 'privateInstanceFunc']);
36 echo "Test failed to fail and return was : ".var_export($fn, true)."\n";
47 $fn = Closure::fromCallable([new SubFoo, 'privateInstanceFunc']);
48 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
59 $fn = Closure::fromCallable([new Foo, 'privateStaticFunction']);
60 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
71 $fn = Closure::fromCallable(['Foo', 'privateStaticFunction']);
72 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
83 $fn = Closure::fromCallable('Foo::privateStaticFunction');
84 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
95 $fn = Closure::fromCallable('Foo::nonExistentFunction');
96 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
107 $fn = Closure::fromCallable(['NonExistentClass', 'foo']);
108 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
119 $fn = Closure::fromCallable('thisDoesNotExist');
120 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
133 $fn = $subFoo->closePrivateInvalid();
134 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
146 $fn = $subFoo->closePrivateStaticInvalid();
147 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
158 $fn = functionAccessProtected();
159 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
170 $fn = functionAccessPrivate();
171 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
183 $fn = $foo->getSelfColonParentPrivateInstanceMethod();
184 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";