Lines Matching refs:foo

5 function foo() {
9 $closures[0] = Closure::fromCallable('foo');
10 $closures[1] = Closure::fromCallable('foo');
12 printf("foo == foo: %s\n", $closures[0] == $closures[1] ? "OK" : "FAIL");
51 printf("foo::existsStatic != bar::existsStatic: %s\n", $closures[0] != $closures[1] ? "OK" : "FAIL"…
53 $foo = new Foo;
55 $closures[0] = Closure::fromCallable([$foo, "exists"]);
58 printf("foo#0::exists != foo#1::exists: %s\n", $closures[0] != $closures[1] ? "OK" : "FAIL");
62 $closures[0] = Closure::fromCallable([$foo, "traitMethod"]);
65 printf("foo::traitMethod != baz::traitMethod: %s\n", $closures[0] != $closures[1] ? "OK" : "FAIL");
67 $closures[0] = Closure::fromCallable([$foo, "traitMethod"]);
68 $closures[1] = Closure::fromCallable([$foo, "aliasMethod"]);
70 printf("foo::traitMethod != foo::aliasMethod: %s\n", $closures[0] != $closures[1] ? "OK" : "FAIL");
72 $closures[0] = Closure::fromCallable([$foo, "exists"]);
73 $closures[1] = Closure::fromCallable([$foo, "exists"]);
75 printf("foo::exists == foo::exists: %s\n", $closures[0] == $closures[1] ? "OK" : "FAIL");
77 $closures[0] = Closure::fromCallable([$foo, "method"]);
78 $closures[1] = Closure::fromCallable([$foo, "method"]);
80 printf("foo::method == foo::method: %s\n", $closures[0] == $closures[1] ? "OK" : "FAIL");
84 printf("foo::method != bar::method: %s\n", $closures[0] != $closures[1] ? "OK" : "FAIL");
86 $closures[0] = Closure::fromCallable([$foo, "method"]);
87 $closures[1] = Closure::fromCallable([$foo, "method2"]);
89 printf("foo::method != foo::method2: %s\n", $closures[0] != $closures[1] ? "OK" : "FAIL");
102 foo == foo: OK
105 foo::existsStatic != bar::existsStatic: OK
106 foo#0::exists != foo#1::exists: OK
107 foo::traitMethod != baz::traitMethod: OK
108 foo::traitMethod != foo::aliasMethod: OK
109 foo::exists == foo::exists: OK
110 foo::method == foo::method: OK
111 foo::method != bar::method: OK
112 foo::method != foo::method2: OK