eZ\Publish\Core\MVC\Symfony\SiteAccess\Tests\Compound\CompoundAndTest::testMatch PHP Method

testMatch() public method

public testMatch ( SimplifiedRequest $request, $expectedMatch )
$request eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest
$expectedMatch
    public function testMatch(SimplifiedRequest $request, $expectedMatch)
    {
        $compoundMatcher = $this->buildMatcher();
        $compoundMatcher->setRequest($request);
        $compoundMatcher->setMatcherBuilder(new MatcherBuilder());
        $this->assertSame($expectedMatch, $compoundMatcher->match());
    }