private function load_routes($file) { $routes = new Routes(); include_once SITE_PATH . "config/{$file}.php"; $routes->dump_to_file("{$file}"); $this->routing_tree =& $routes->routing_tree; }
function testNestedRoutes() { $routes = new Routes(); $nested = $routes->resources("teams"); $nested->resources("ceva"); $routes->dump_to_file("nested"); include_once SITE_PATH . "config/nested.tmp.php"; $this->assertEqual($routes->routing_tree, $root); unlink(SITE_PATH . "config/nested.tmp.php"); }