| | 455 | // regression for ticket #3423 occuring when cache is used. (for the test its enough to have it non null) |
|---|
| | 456 | $rCached = new sfPatternRoutingTest(new sfEventDispatcher(),new sfNoCache()); |
|---|
| | 457 | $rCached->connect('test', '/:module', array('action' => 'index')); |
|---|
| | 458 | $rCached->connect('test2', '/', array()); |
|---|
| | 459 | $rCached->parse('/'); |
|---|
| | 460 | $t->is($rCached->getCurrentInternalUri(), 'default/index', '->getCurrentInternalUri() returns the internal URI for last parsed URL using cache'); |
|---|
| | 461 | $rCached->parse('/test'); |
|---|
| | 462 | $t->is($rCached->getCurrentInternalUri(), 'test/index', '->getCurrentInternalUri() returns the internal URI for last parsed URL using cache'); |
|---|
| | 463 | $rCached->parse('/'); |
|---|
| | 464 | $t->is($rCached->getCurrentInternalUri(), 'default/index', '->getCurrentInternalUri() returns the internal URI for last parsed URL using cache'); |
|---|
| | 465 | |
|---|