Changeset 16912
- Timestamp:
- 04/02/09 20:21:09 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/routing/sfPatternRouting.class.php
r16911 r16912 397 397 } 398 398 399 $route = $this->routes[$name]; 400 399 401 if (false === $route) 400 402 { 401 403 $route = $this->loadRoute($name); 402 404 } 403 404 $route = $this->routes[$name];405 405 } 406 406 else branches/1.2/test/unit/routing/sfPatternRoutingTest.php
r16911 r16912 11 11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 12 12 13 $t = new lime_test(13 0, new lime_output_color());13 $t = new lime_test(131, new lime_output_color()); 14 14 15 15 class sfPatternRoutingTest extends sfPatternRouting … … 513 513 $t->is($rCached->isRouteLoaded('second'), true, 'The last route is loaded after a full routes scan'); 514 514 $rCached = new sfPatternRoutingTest($dispatcher, $cache, $options); 515 $t->is($rCached->generate('second'), '/', '->generate() works on a lazy route'); 516 $rCached = new sfPatternRoutingTest($dispatcher, $cache, $options); 515 517 $routes = $rCached->getRoutes(); 516 518 try branches/1.3/lib/routing/sfPatternRouting.class.php
r16911 r16912 397 397 } 398 398 399 $route = $this->routes[$name]; 400 399 401 if (false === $route) 400 402 { 401 403 $route = $this->loadRoute($name); 402 404 } 403 404 $route = $this->routes[$name];405 405 } 406 406 else branches/1.3/test/unit/routing/sfPatternRoutingTest.php
r16911 r16912 11 11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 12 12 13 $t = new lime_test(13 0, new lime_output_color());13 $t = new lime_test(131, new lime_output_color()); 14 14 15 15 class sfPatternRoutingTest extends sfPatternRouting … … 513 513 $t->is($rCached->isRouteLoaded('second'), true, 'The last route is loaded after a full routes scan'); 514 514 $rCached = new sfPatternRoutingTest($dispatcher, $cache, $options); 515 $t->is($rCached->generate('second'), '/', '->generate() works on a lazy route'); 516 $rCached = new sfPatternRoutingTest($dispatcher, $cache, $options); 515 517 $routes = $rCached->getRoutes(); 516 518 try