--TEST-- Check for Sample application with exception --SKIPIF-- --INI-- yaf.use_spl_autoload=0 yaf.lowcase_path=0 yaf.use_namespace=0 --FILE-- array( "directory" => APPLICATION_PATH, "dispatcher" => array ( "catchException" => true, ), "library" => array( ), ), ); file_put_contents(APPLICATION_PATH . "/controllers/Error.php", <<_view->msg = \$exception->getMessage(); } } PHP ); file_put_contents(APPLICATION_PATH . "/Bootstrap.php", <<getConfig()); } public function _initPlugin(Yaf_Dispatcher \$dispatcher) { \$dispatcher->registerPlugin(new TestPlugin()); } public function _initReturn(Yaf_Dispatcher \$dispatcher) { // \$dispatcher->returnResponse(true); } } PHP ); file_put_contents(APPLICATION_PATH . "/plugins/Test.php", <<"); mkdir(APPLICATION_PATH . "/views/error/"); file_put_contents(APPLICATION_PATH . "/views/error/error.phtml", "catched: "); $app = new Yaf_Application($config); $app->bootstrap()->run(); ?> --CLEAN-- --EXPECTF-- string(13) "routerStartup" string(14) "routerShutdown" string(19) "dispatchLoopStartup" string(11) "preDispatch" string(4) "init" string(6) "action" catched: view exception