Confirms we can nest multiple partial matchers.
public function testNestedMatcher() {
$matcher = new NestedMatcher();
$matcher
->setInitialMatcher(new MockPathMatcher($this->fixtures
->sampleRouteCollection()));
$matcher
->addPartialMatcher(new HttpMethodMatcher(), 1);
$matcher
->setFinalMatcher(new FirstEntryFinalMatcher());
$request = Request::create('/path/one', 'GET');
$attributes = $matcher
->matchRequest($request);
$this
->assertEqual($attributes['_route']
->getOption('_name'), 'route_a', 'The correct matching route was found.');
}