--TEST-- Indirect method call by array - Calling __call() and __callStatic() --FILE-- getMessage() . "\n"; } $foo = new foo; $arr = array($foo, 'abc'); $arr(); ?> --EXPECTF-- From foo::__callStatic: string(3) "abc" Exception: Using $this when not in object context From foo::__call: string(3) "abc" object(foo)#%d (0) { }