You are here

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

File

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

Class

RequestContextTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testGetParameters() {
  $requestContext = new RequestContext();
  $this
    ->assertEquals(array(), $requestContext
    ->getParameters());
  $requestContext
    ->setParameters(array(
    'foo' => 'bar',
  ));
  $this
    ->assertEquals(array(
    'foo' => 'bar',
  ), $requestContext
    ->getParameters());
}