--TEST-- Check for Custom MVC name --SKIPIF-- --INI-- yaf.use_spl_autoload=0 yaf.use_namespace=0 --FILE-- array( "directory" => APPLICATION_PATH, "bootstrap" => APPLICATION_PATH . "/cboot.php", "dispatcher" => array ( "catchException" => true, ), "library" => array( ), ), ); file_put_contents(APPLICATION_PATH . "/controllers/Error.php", <<getMessage()); return FALSE; } } PHP ); file_put_contents(APPLICATION_PATH . "/cboot.php", <<registerPlugin(new TestPlugin()); } } PHP ); file_put_contents(APPLICATION_PATH . "/plugins/Test.php", <<setModuleName("CUSTOM", false); \$request->setControllerName("INDEX", false); \$request->setActionName("CamelName", false); return; } public function dispatchLoopStartup(Yaf_Request_Abstract \$request, Yaf_Response_Abstract \$response) { } public function preDispatch(Yaf_Request_Abstract \$request, Yaf_Response_Abstract \$response) { } public function postDispatch(Yaf_Request_Abstract \$request, Yaf_Response_Abstract \$response) { var_dump(\$request->getControllerName()); var_dump(\$request->getActionName()); } } PHP ); $value = NULL; @mkdir(APPLICATION_PATH . "/modules"); @mkdir(APPLICATION_PATH . "/modules/CUSTOM"); @mkdir(APPLICATION_PATH . "/modules/CUSTOM/controllers"); @mkdir(APPLICATION_PATH . "/modules/CUSTOM/views"); /* Controller name here should be lowercase anyway? */ @mkdir(APPLICATION_PATH . "/modules/CUSTOM/views/index"); file_put_contents(APPLICATION_PATH . "/modules/CUSTOM/controllers/INDEX.php", <<"); $app = new Yaf_Application($config); $app->bootstrap()->run(); ?> --CLEAN-- --EXPECTF-- string(5) "INDEX" string(9) "CamelName" string(2) "ok"