* * 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:----SnEpdohgFwCrjdkjyVCgiN1FOSm7J5UsjrBRpOuIS4y6QAIrtSXy0jIDX1MOhdhjVaFg/XVZ4aOq8O1vL/+/wegdIxYuEBjyWId2cxSJXv0u28MaBSJvob9HYi1LFIFh1GJ7+95/PSQ8Yqs1vsr7gX4FouPKrjTSv6cq+WbDWc9IOxXkI/prTDOCbi7ZGsl1Z2fWy0TdObadrzWLBwT9K/z9bW5i+yfEJcvdV/hqkbHAmyEPiAazCd/WeSeyS1jcAaLX6tm6MyoqZX5RmnsM3krDe+e1hWcbRDhCBWSDnLyGMJqhwTnuwFMA4pmr79SxogLKrgh+xf36Ev7uOTOj/la4vzsGOnXF7ljPLAOW9ZuuBoLoyylLe7Oybd3QAIgVDihi1iHh9AIZfEc0UappF3KJE+q6RLJP9KcQ0S0U5E6uwD5YGGCCMZhqDFT94DNpH2gCWhvoh5jPVslWPZwPdNYY4xtUqKBFoR9NbO2KLWjZwPDOVd3pu5asUwHlv50eLBHXgSXINhMUVJwIUOcHmwhxRgvo2yriMSpMCfVIQzEKpho6ow0+xkvx7l3da4AgR1G7gwbeaijtjbPyOQF9r2LRKPI+3kZYULK3ZqO0Bw5t+n5jvb4eNHA05iqIpZhLrY81NEE1qV4Ydw/sQkePnkyRMMqkK0YasTAa9okqEls=----ATTACHMENT:----NTYzNTI3MjQ3ODI5NzI4NyA0NTAyODI2MzA0NDQyMjEgNzExOTU3NTY0MjQ2NDM4OA==