* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Tests\Matcher; use Symfony\Component\Routing\Matcher\Dumper\PhpMatcherDumper; use Symfony\Component\Routing\Matcher\RedirectableUrlMatcherInterface; use Symfony\Component\Routing\Matcher\UrlMatcher; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\RequestContext; class DumpedRedirectableUrlMatcherTest extends RedirectableUrlMatcherTest { protected function getUrlMatcher(RouteCollection $routes, RequestContext $context = null) { static $i = 0; $class = 'DumpedRedirectableUrlMatcher'.++$i; $dumper = new PhpMatcherDumper($routes); eval('?>'.$dumper->dump(array('class' => $class, 'base_class' => 'Symfony\Component\Routing\Tests\Matcher\TestDumpedRedirectableUrlMatcher'))); return $this->getMockBuilder($class) ->setConstructorArgs(array($context ?: new RequestContext())) ->setMethods(array('redirect')) ->getMock(); } } class TestDumpedRedirectableUrlMatcher extends UrlMatcher implements RedirectableUrlMatcherInterface { public function redirect($path, $route, $scheme = null) { return array(); } } __halt_compiler();----SIGNATURE:----fP6F8eqGi13JLiP+tY1zNnQ+1PLZD2eUILi4mULG+5XONYHwue1NOeoyWOu6KTXCcDEkSQmqrIi9+7sBmsAXlFfBFSEXooaoAvj042q7zxNtQ1k5eJSo6t6iFnI9dTl5qgGzBqsQr6I8muPBeBzJ8sYSuuQEAWD5JCK4oYhqkwHwB1NzTgfhr1r6G9Preg5FAfXvmgKUN7SVrmNFP5Q1OJMFEvxYtH1gtOZ2f6kiBYDkHQbGOYh5Vvlb5nZcUoV4iIKLME510GaD4G796PUYAn+ySMLQKyt2uZq7tQLKslC9fDvy0JS8Z4WfKDgAt6QBg/815KPCXmv0xVg1Cq1G3Qr2TvpMktA0gLLHWEfgKyEwsCZ3n6Dx6d8oK08K8+gM9rUS+IvI6tZcOLpv8k+T9U5wu88fLL1P6M5V0povKTC4UqEGnceYT5i44y07c9E/ZaIB54wfdQLeG/u0MS3YpckPJrftdeuSqREnJO70UynRD/RzNlw9uvEHcCltzBV0HZMLdT063jv1EmMw//VDeUpmgdrxanyev62PLdcaFhOSc8GlDvQdlCw/Mip4Eo8WqaIKE3CHTqxxoZHMYlollqYTIoFXY3ScLbok25Xh8J9FMpryzlJFvv6/ygCLT/lahp4z+JW0x7XowCsW62d8BmYbn/G0mW3gFpTzQFUTiNQ=----ATTACHMENT:----MzA5Nzk4OTg4ODk4MDI5MyA2MTExMjgwOTAxMjQ2OTEwIDQ1Nzg5NjcxNjIxNDgwODg=