--TEST-- Check for auto response with ErrorController --SKIPIF-- --EXTENSIONS-- json --INI-- yaf.use_spl_autoload=0 yaf.lowcase_path=0 yaf.use_namespace=0 --FILE-- array( "directory" => APPLICATION_PATH, "dispatcher" => array ( "catchException" => true, ), ), ); file_put_contents(APPLICATION_PATH . "/controllers/Error.php", <<getResponse(); \$response->setBody(json_encode(array( "code" => \$exception->getCode(), "msg" => \$exception->getMessage(), ) )); \$response->response(); return false; } } PHP ); file_put_contents(APPLICATION_PATH . "/controllers/Index.php", <<returnResponse(true); } } PHP ); $app = new Yaf_Application($config); $response = $app->run(); ?> --CLEAN-- --EXPECTF-- {"code":%d,"msg":"There is no method indexAction in IndexController"}