<?php/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespaceSymfony\Component\Routing\Tests\Matcher;useSymfony\Component\Routing\Matcher\Dumper\PhpMatcherDumper;useSymfony\Component\Routing\RequestContext;useSymfony\Component\Routing\RouteCollection;classDumpedUrlMatcherTestextendsUrlMatcherTest{protectedfunctiongetUrlMatcher(RouteCollection$routes,RequestContext$context=null){static$i=0;$class='DumpedUrlMatcher'.++$i;$dumper=newPhpMatcherDumper($routes);eval('?>'.$dumper->dump(['class'=>$class]));returnnew$class($context?:newRequestContext());}}