Extends
lithium\test\Unit
Test matching routes with only insert parameters and no default values.
Source
public function testRouteMatchingWithOnlyInserts() {
Router::connect('/{:controller}');
$this->assertEqual('/posts', Router::match(array('controller' => 'posts')));
$this->expectException(
"No parameter match found for URL `('controller' => 'posts', 'action' => 'view')`."
);
Router::match(array('controller' => 'posts', 'action' => 'view'));
}