--TEST-- Check actions map with defined action class --SKIPIF-- --INI-- yaf.use_spl_autoload=0 yaf.lowcase_path=0 yaf.use_namespace=0 --FILE-- array( "directory" => APPLICATION_PATH, ), ); file_put_contents(APPLICATION_PATH . "/controllers/Index.php", << "actions/sub.php", ); public function indexAction() { var_dump(\$this->forward('sub')); } } PHP ); file_put_contents(APPLICATION_PATH . "/actions/sub.php", <<getModuleName()); var_dump(\$this->getControllerName()); } } PHP ); file_put_contents(APPLICATION_PATH . "/views/index/index.phtml", "indexAction" . PHP_EOL); file_put_contents(APPLICATION_PATH . "/views/index/sub.phtml", "subAction" . PHP_EOL); $app = new Yaf_Application($config); $request = new Yaf_Request_Simple(); $app->getDispatcher()->dispatch($request); $new_request = new Yaf_Request_Simple(); $new_request->setActionName('sub'); $app->getDispatcher()->dispatch($new_request); ?> --CLEAN-- --EXPECTF-- bool(true) string(5) "Index" string(5) "Index" indexAction subAction string(5) "Index" string(5) "Index" subAction