global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / methodcache_magic.php
blob80045ff7c43a98682350032358a022ee953652e0
1 <?hh
3 // disable array -> "Array" conversion notice
4 error_reporting(error_reporting() & ~E_NOTICE);
6 class base {
7 public function __call($x, $y) {
8 echo "base::__call: $x, $y " . static::class . "\n";
12 class one extends base {
15 class two extends base {
18 class goer {
19 public function go($o) {
20 $o->magic();
24 function main() {
25 $go = new goer;
26 $one = new one;
27 $two = new two;
28 $go->go($one);
29 foreach (array(1,2,3) as $_) {
30 foreach (array($one, $two) as $o) {
31 $go->go($o);
32 $go->go($o);
37 main();