1..145 # ->getRoutes() ok 1 - ->getRoutes() returns all current routes ok 2 - ->getRoutes() returns a hash indexed by route names ok 3 - ->getRoutes() returns a hash indexed by route names # ->setRoutes() ok 4 - ->setRoutes() takes a routes array as its first parameter # ->clearRoutes() ok 5 - ->clearRoutes() clears all current routing rules # ->hasRoutes() ok 6 - ->hasRoutes() returns false if there is no route ok 7 - ->hasRoutes() returns true if some routes are registered # ->connect() ok 8 - ->connect() automatically adds trailing / to route if missing ok 9 - ->connect() detects empty routes # route syntax ok 10 - ->parse() /:module/:action route ok 11 - ->generate() /:module/:action url # route order ok 12 - ->parse() takes the first matching route ok 13 - ->generate() takes the first matching route ok 14 - ->parse() takes the first matching route ok 15 - ->generate() takes the first matching route ok 16 - ->parse() takes the first matching route ok 17 - ->generate() takes the first matching route # suffix ok 18 - ->generate() creates URL suffixed by sf_suffix parameter ok 19 - ->generate() creates URL with no suffix when route ends with . ok 20 - ->generate() creates URL with no suffix when route ends with / ok 21 - ->generate() creates URL with special suffix when route ends with .suffix ok 22 - ->generate() creates URL with no special suffix when route ends with .:suffix ok 23 - ->parse() finds route from URL suffixed by sf_suffix ok 24 - ->parse() finds route with no suffix when route ends with . ok 25 - ->parse() finds route with no suffix when route ends with / ok 26 - ->parse() finds route with special suffix when route ends with .suffix ok 27 - ->parse() finds route with special suffix when route ends with .:suffix # query string ok 28 - ->parse() does not take query string into account # default values ok 29 - ->generate() creates URL for route with missing parameter if parameter is set in the default values ok 30 - ->parse() finds route for URL with missing parameter if parameter is set in the default values ok 31 - ->generate() creates URL for route with more than one missing parameter if default values are set ok 32 - ->parse() finds route for URL with more than one missing parameter if default values are set ok 33 - ->generate() parameters override the route default values ok 34 - ->parse() finds route with parameters distinct from the default values ok 35 - ->generate() creates URL even if there is no default value ok 36 - ->parse() finds route even when route has no default value ok 37 - ->generate() routes have default parameters value that can be overriden ok 38 - ->parse() routes have default parameters value that can be overriden ok 39 - ->generate() does not remove the last parameter if the parameter is default value ok 40 - ->parse() removes the last parameter if the parameter is default value ok 41 - ->generate() does not remove last parameters if they have default values ok 42 - ->parse() removes last parameters if they have default values ok 43 - ->generate() merges parameters with defaults from sf_routing_defaults # unnamed wildcard * ok 44 - ->parse() finds route for URL with no additional parameters when route ends with unnamed wildcard * ok 45 - ->generate() creates URL for route with no additional parameters when route ends with unnamed wildcard * ok 46 - ->parse() finds route for URL with no additional parameters and trailing slash when route ends with unnamed wildcard * ok 47 - ->parse() finds route for URL with additional parameters and trailing slash when route ends with unnamed wildcard * ok 48 - ->parse() finds route for URL with additional parameters when route ends with unnamed wildcard * ok 49 - ->generate() creates URL for route with additional parameters when route ends with unnamed wildcard * ok 50 - ->parse() does not override named wildcards with parameters passed in unnamed wildcard * ok 51 - ->parse() considers multiple separators as single in unnamed wildcard * ok 52 - ->parse() takes the first matching route but takes * into accounts ok 53 - ->generate() takes the first matching route but takes * into accounts ok 54 - ->parse() takes the first matching route but takes * into accounts ok 55 - ->generate() takes the first matching route but takes * into accounts # unnamed wildcard * in the middle of a rule ok 56 - ->parse() finds route for URL when no extra parameters are present in the URL ok 57 - ->generate() creates URL for route when no extra parameters are added to the internal URI ok 58 - ->parse() finds route for URL when extra parameters are present in the URL ok 59 - ->generate() creates URL for route when extra parameters are added to the internal URI ok 60 - ->parse() finds route for URL when no extra parameters are present in the URL ok 61 - ->generate() creates URL for route when no extra parameters are added to the internal URI ok 62 - ->parse() finds route for URL when extra parameters are present in the URL ok 63 - ->generate() creates URL for route when extra parameters are added to the internal URI # requirements ok 64 - ->parse() finds route for URL when parameters meet requirements ok 65 - ->generate() creates URL for route when parameters meet requirements ok 66 - ->parse() ignore routes when parameters don't meet requirements ok 67 - ->generate() ignore routes when parameters don't meet requirements ok 68 - ->parse() finds route for URL when parameters meet requirements ok 69 - ->generate() creates URL for route when parameters meet requirements # separators ok 70 - ->parse() recognizes parameters separated by / ok 71 - ->generate() creates routes with / separator ok 72 - ->parse() recognizes parameters separated by ; ok 73 - ->generate() creates routes with ; separator ok 74 - ->parse() recognizes parameters separated by : ok 75 - ->generate() creates routes with : separator ok 76 - ->parse() recognizes parameters separated by + ok 77 - ->generate() creates routes with + separator ok 78 - ->parse() recognizes parameters separated by | ok 79 - ->generate() creates routes with | separator ok 80 - ->parse() recognizes parameters separated by . ok 81 - ->generate() creates routes with . separator ok 82 - ->parse() recognizes parameters separated by - ok 83 - ->generate() creates routes with - separator ok 84 - ->parse() recognizes parameters separated by mixed separators ok 85 - ->generate() creates routes with mixed separators ok 86 - ->parse() works without segment_separators ok 87 - ->generate() works without segment_separators ok 88 - ->parse() works without segment_separators ok 89 - ->generate() works without segment_separators ok 90 - ->parse() works with segment_separators which are not in url ok 91 - ->generate() works with segment_separators which are not in url ok 92 - ->parse() works with segment_separators which are not in url ok 93 - ->generate() works with segment_separators which are not in url # token names ok 94 - ->parse() accepts token names composed of letters, digits and _ ok 95 - ->generate() accepts token names composed of letters, digits and _ # token prefix ok 96 - ->parse() accepts token names starting with : ok 97 - ->generate() accepts token names starting with : ok 98 - ->parse() accepts token names starting with $ ok 99 - ->generate() accepts token names starting with $ ok 100 - ->parse() accepts token names starting with mixed : and $ ok 101 - ->generate() accepts token names starting with mixed : and $ # named routes ok 102 - ->generate() can take an empty route name as its first parameter ok 103 - ->generate() can take a route name as its first parameter ok 104 - ->generate() with named routes needs only parameters not defined in route default # ->appendRoute() ok 105 - ->appendRoute() is an alias for ->connect() # ->prependRoute() ok 106 - ->prependRoute() adds new routes at the beginning of the existings ones # ->insertRouteBefore() ok 107 - ->insertRouteBefore() adds a new route before another existings one ok 108 - ->insertRouteBefore() throws an sfConfigurationException when trying to insert a route before a non existent one # ->getCurrentInternalUri() ok 109 - ->getCurrentInternalUri() returns the internal URI for last parsed URL ok 110 - ->getCurrentInternalUri() returns the internal URI for last parsed URL ok 111 - ->getCurrentInternalUri() returns the internal URI for last parsed URL # Lazy Routes Config Cache ok 112 - ->getCurrentInternalUri() returns the internal URI for last parsed URL ok 113 - ->getCurrentInternalUri() returns the internal URI for last parsed URL ok 114 - ->getCurrentInternalUri() returns the internal URI for last parsed URL ok 115 - ->getCurrentInternalUri() returns the internal URI for last parsed URL using cache ok 116 - ->getCurrentInternalUri() returns the internal URI for last parsed URL using cache ok 117 - ->getCurrentInternalUri() returns the internal URI for last parsed URL using cache ok 118 - ->findRoute() returns information about matching route ok 119 - ->findRoute() does not change the internal URI of sfPatternRouting ok 120 - ->findRoute() returns null on non-matching route ok 121 - ->getCurrentInternalUri() reseted after negative match ok 122 - ->getCurrentRouteName() reseted after negative match # defaults ok 123 - ->generate() routes takes default values into account when matching a route ok 124 - ->generate() routes takes default values into account when matching a route ok 125 - ->generate() throws a sfConfigurationException if no route matches the params # mandatory parameters ok 126 - ->generate() throws a InvalidArgumentException if some mandatory parameters are not provided # module/action overriding ok 127 - ->parse() overrides the default module/action if provided in the defaults ok 128 - ->generate() overrides the default module/action if provided in the defaults # parameter values decoding ok 129 - ->parse() decodes parameter values ok 130 - ->parse() decodes parameter values ok 131 - ->parse() /:module/:action route ok 132 - ->parse() /customer/:param1/:action/* route ok 133 - ->generate() first replaces the longest variable names ok 134 - ->generate() allows route to generate absolute urls ok 135 - ->generate() does not double-absolutize urls # suffix handling with generate_shortest_url option ok 136 - ->generate() creates URL when using suffix and generate_shortest_url ok 137 - ->generate() creates URL when using suffix and generate_shortest_url ok 138 - ->parse() returns all default parameters when provided suffix and generate_shortest_url enabled with / suffix ok 139 - ->generate() creates URL when using suffix and generate_shortest_url ok 140 - ->generate() creates URL when using suffix and generate_shortest_url ok 141 - ->generate() creates URL when using suffix and generate_shortest_url ok 142 - ->parse() returns all default parameters when provided suffix and generate_shortest_url enabled with .html suffix ok 143 - ->generate() creates URL when using suffix and generate_shortest_url ok 144 - ->generate() creates URL when using suffix and generate_shortest_url ok 145 - ->generate() creates URL when using suffix and generate_shortest_url # Looks like everything went fine.