public function ExpressionRequestMatcherTest::testMatchesWhenParentMatchesIsFalse 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::testMatchesWhenParentMatchesIsFalse()
@dataProvider provideExpressions
File
- vendor/
symfony/ http-foundation/ Tests/ ExpressionRequestMatcherTest.php, line 44
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testMatchesWhenParentMatchesIsFalse($expression) {
$request = Request::create('/foo');
$request->attributes
->set('foo', 'foo');
$expressionRequestMatcher = new ExpressionRequestMatcher();
$expressionRequestMatcher
->matchAttribute('foo', 'bar');
$expressionRequestMatcher
->setExpression(new ExpressionLanguage(), $expression);
$this
->assertFalse($expressionRequestMatcher
->matches($request));
}