Extends
lithium\test\Unit
Tests matching routes where the route template is a static string with no insert parameters.
Source
public function testRouteMatchingWithNoInserts() {
Router::connect('/login', array('controller' => 'sessions', 'action' => 'add'));
$result = Router::match(array('controller' => 'sessions', 'action' => 'add'));
$this->assertEqual('/login', $result);
$this->expectException(
"No parameter match found for URL `('controller' => 'sessions', 'action' => 'index')`."
);
Router::match(array('controller' => 'sessions', 'action' => 'index'));
}