--TEST-- Observer: Basic magic method observability --SKIPIF-- --INI-- zend_test.observer.enabled=1 zend_test.observer.observe_all=1 --FILE-- foo($name); } public function foo($name) { echo $name . PHP_EOL; } } $test = new MagicTest(); $test->foo('test'); $test->bar(); echo 'DONE' . PHP_EOL; ?> --EXPECTF-- test __call() bar DONE