Created
August 17, 2011 16:57
-
-
Save ringmaster/1152011 to your computer and use it in GitHub Desktop.
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
/** | |
* Test matching routes that do not specify HTTP methods against specifically requested methods. | |
*/ | |
public function testUnspecificMethodBasedMatching() { | |
$parameters = array('controller' => 'users', 'action' => 'edit'); | |
$route = new Route(array( | |
'template' => '/nomethod', | |
'params' => $parameters )); | |
$this->assertEqual('/nomethod', $route->match($parameters)); | |
$this->assertEqual('/nomethod', $route->match($parameters + array('http:method' => 'POST'))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment