* * 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:----E2yJscqyzJ+7/WldF9c0ZeJU4eeKZBgS7hfrDBmUP+pgg8OUDvSU9pMK7cWiCSGWSHzQWnIqxUlNqPGzzAXO+AVrcXsbPdbtVdbNlNHYAdM8iBOtQ5sz3ez3Vq/7pbkmThKcI/lnfuYQCd0+tL/AufHyFyktkmn4LciKZjPEvVyE+FIrCys3uozdtmnVvBPklwph+M9ZGyZYxHoaSluvSusc182ynUKCWL6hX8GAetrZAAwTluetnzpoGo8ipxaZjYaqZXmUY2S1eZWh6aV2yTjhWCqFc4HKsfpbWXE2D5itfkD0qgyp7gSvzyH8MNZU+aEsXlTcHds61ik/UEb3jvNuf/sFHIT+ceC2juTM5xV7Fh+svGlv3Rfm7gGPBEgLt72P7QEOPG7wo/Zlll57zTmLEgz7twTRNFQFpM1FqY7Rs7+HNmqKbhE28OdfTkX+6IJx2eUI8zn38fhgfcYXakMDVePYhSSURRqjukkkxKyyAHi+ze94xZWvFGVkQKaFlCMzCtMVJ85AvdgVlyiwMQ7GaK1Vgf+dPTZjPRMSmU2vl1ote1aMNG3WaR1PAeTYPxXkAPPjwVqaHaMr5gk9AM2X3iV3mhViAiYGlPYX+y1zgaX2PMr8ZAIdl0Zf7hQwQzfOn7euUQ8XQC/fHgU5sIKPTEEQmO9IfjVG1yqQsj4=----ATTACHMENT:----OTgxMDg0NDE4NTAyMzg1MCA4MjE3MDM4MjE1MDkzNDEwIDc5MDcxMzkwMTQ1MTM0NTU=