Created
July 23, 2013 12:08
-
-
Save marcghorayeb/6061882 to your computer and use it in GitHub Desktop.
Li3 RFC concerning Route parsing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*/ | |
public function testRouteMatchWithControllerParsed() { | |
Router::reset(); | |
Router::connect('/{:controller:lists}/{:action:add}'); | |
$this->assertIdentical( | |
'/lists/add', | |
Router::match(array('controller' => 'lists', 'action' => 'add')) | |
); | |
Router::connect('/lists/{:action:add}', array('controller' => 'lists')); | |
$this->assertIdentical( | |
'/lists/add', | |
Router::match(array('controller' => 'lists', 'action' => 'add')) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment