Skip to content

Commit 6ae9aa8

Browse files
krakjoenikic
authored andcommitted
fix test as suggested, for real this time
1 parent 5267c48 commit 6ae9aa8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Zend/tests/first_class_callable_005.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ First Class Callable from Magic
44
<?php
55
class Foo {
66
public function __call($method, $args) {
7-
return "OK CALL\n";
7+
return $method;
88
}
99

1010
public static function __callStatic($method, $args) {
11-
return "OK CALL STATIC\n";
11+
return $method;
1212
}
1313
}
1414

1515
$foo = new Foo;
16-
$bar = $foo->anything(...);
16+
$bar = $foo->anythingInstance(...);
1717

18-
echo $bar();
18+
echo $bar() . PHP_EOL;
1919

20-
$qux = Foo::anything(...);
20+
$qux = Foo::anythingStatic(...);
2121

2222
echo $qux();
2323
?>
2424
--EXPECT--
25-
OK CALL
26-
OK CALL STATIC
25+
anythingInstance
26+
anythingStatic

0 commit comments

Comments
 (0)