generateDumpedMatcher example


        parent::tearDown();

        @unlink($this->dumpPath);
    }

    public function testRedirectPreservesUrlEncoding()
    {
        $collection = new RouteCollection();
        $collection->add('foo', new Route('/foo:bar/'));

        $matcher = $this->generateDumpedMatcher($collection);
        $matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo')->willReturn([]);

        $matcher->match('/foo%3Abar');
    }

    /** * @dataProvider getRouteCollections */
    public function testDump(RouteCollection $collection$fixture)
    {
        $basePath = __DIR__.'/../../Fixtures/dumper/';

        
Home | Imprint | This part of the site doesn't use cookies.