public function ExpressionRequestMatcherTest::testMatchesWhenParentMatchesIsTrue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/ExpressionRequestMatcherTest.php \Symfony\Component\HttpFoundation\Tests\ExpressionRequestMatcherTest::testMatchesWhenParentMatchesIsTrue()
@dataProvider provideExpressions
File
- vendor/
symfony/ http-foundation/ Tests/ ExpressionRequestMatcherTest.php, line 32
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testMatchesWhenParentMatchesIsTrue($expression, $expected) {
$request = Request::create('/foo');
$expressionRequestMatcher = new ExpressionRequestMatcher();
$expressionRequestMatcher
->setExpression(new ExpressionLanguage(), $expression);
$this
->assertSame($expected, $expressionRequestMatcher
->matches($request));
}