You are here

public function RequestContextTest::testGetParameter 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::testGetParameter()

File

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

Class

RequestContextTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testGetParameter() {
  $requestContext = new RequestContext();
  $requestContext
    ->setParameters(array(
    'foo' => 'bar',
  ));
  $this
    ->assertEquals('bar', $requestContext
    ->getParameter('foo'));
  $this
    ->assertNull($requestContext
    ->getParameter('baz'));
}