Kraken\_Unit\Network\Http\Component\Router\HttpRouterTest::createMatcher PHP Method

createMatcher() public method

public createMatcher ( string[] | null $methods = [] ) : Symfony\Component\Routing\Matcher\UrlMatcher | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Symfony\Component\Routing\Matcher\UrlMatcher | PHPUnit_Framework_MockObject_MockObject
    public function createMatcher($methods = [])
    {
        $matcher = $this->getMock(UrlMatcher::class, $methods, [$this->getProtectedProperty($this->router, 'routes'), $this->getProtectedProperty($this->router, 'context')]);
        $this->setProtectedProperty($this->router, 'matcher', $matcher);
        return $matcher;
    }
HttpRouterTest