public function testDefaultRequirementForOptionalVariables() {
$coll = new RouteCollection();
$coll
->add('test', new Route('/{page}.{_format}', array(
'page' => 'index',
'_format' => 'html',
)));
$matcher = new UrlMatcher($coll, new RequestContext());
$this
->assertEquals(array(
'page' => 'my-page',
'_format' => 'xml',
'_route' => 'test',
), $matcher
->match('/my-page.xml'));
}