You are here

public function ExpressionRequestMatcherTest::testMatchesWhenParentMatchesIsFalse in Zircon Profile 8

Same name and namespace in other branches
  1. 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

ExpressionRequestMatcherTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

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));
}