--TEST-- Check for view path generating --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", <<"); $app = new Yaf_Application($config); $app->getDispatcher()->getRouter()->AddRoute("map", new Yaf_Route_Map(true)); $request = new Yaf_Request_Http("/"); $app->getDispatcher()->dispatch($request); /* Foo_Bar_Index controller */ mkdir(APPLICATION_PATH . "/controllers/Foo"); mkdir(APPLICATION_PATH . "/controllers/Foo/Bar"); file_put_contents(APPLICATION_PATH . "/controllers/Foo/Bar/Index.php", <<"); $request = new Yaf_Request_Http("/Foo/Bar/Index"); $app->getDispatcher()->dispatch($request); /* Foo_Bar_Index action */ mkdir(APPLICATION_PATH . "/views/index/foo"); mkdir(APPLICATION_PATH . "/views/index/foo/bar"); file_put_contents(APPLICATION_PATH . "/views/index/foo/bar/index.phtml", ""); $app->getDispatcher()->getRouter()->AddRoute("map", new Yaf_Route_Map(false)); $app->getDispatcher()->getRequest()->setDispatched(false)->setRouted(false)->setControllerName("Index"); $app->getDispatcher()->dispatch($request); ?> --CLEAN-- --EXPECT-- string(5) "Index" string(14) "CFoo_Bar_Index" string(14) "AFoo_Bar_Index"