Extends
lithium\test\Unit
Tests that a successful match against a route with template `'/'` operating at the root of
a domain never returns an empty string.
Source
public function testMatchingEmptyRoute() {
Router::connect('/', 'Users::view');
$request = new Request(array('base' => '/'));
$url = Router::match(array('controller' => 'users', 'action' => 'view'), $request);
$this->assertEqual('/', $url);
$request = new Request(array('base' => ''));
$url = Router::match(array('controller' => 'users', 'action' => 'view'), $request);
$this->assertEqual('/', $url);
}