3 * A holding class for route callback tests
9 * @copyright (c) 2008-2012 Kohana Team
10 * @license http://kohanaframework.org/license
15 * Just an empty callback that doesn't match anything
17 public static function default_callback($uri)
23 * Just an empty callback that matches everything
27 public static function default_return_callback($uri)
35 * Route callback for test_matches_returns_array_of_parameters_on_successful_match
39 public static function matches_returns_array_of_parameters_on_successful_match($uri)
42 'controller' => 'welcome',
48 * Route callback for test_required_parameters_are_needed
52 public static function required_parameters_are_needed($uri)
54 if (substr($uri, 0, 5) == 'admin')
57 'controller' => 'foo',
64 * Route callback for test reverse_routing_returns_routes_uri_if_route_is_static
68 public static function reverse_routing_returns_routes_uri_if_route_is_static($uri)
70 if ($uri == 'info/about_us')
79 * Route callback for test route_filter_modify_params
83 public static function route_filter_modify_params_array(Route
$route, $params)
85 $params['action'] = 'modified';
91 * Route callback for test route_filter_modify_params
95 public static function route_filter_modify_params_false(Route
$route, $params)