Turn FFP errors upto 11; report everything
[hiphop-php.git] / hphp / test / quick / methodcache_magic.php
blobd50db458c83f994183844ca1807d2e6318b2ac9c
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 " . get_called_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();