You are here

public function RequestContextTest::testHasParameter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/RequestContextTest.php \Symfony\Component\Routing\Tests\RequestContextTest::testHasParameter()

File

vendor/symfony/routing/Tests/RequestContextTest.php, line 76

Class

RequestContextTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testHasParameter() {
  $requestContext = new RequestContext();
  $requestContext
    ->setParameters(array(
    'foo' => 'bar',
  ));
  $this
    ->assertTrue($requestContext
    ->hasParameter('foo'));
  $this
    ->assertFalse($requestContext
    ->hasParameter('baz'));
}