public function RequestContextTest::testGetParameter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Tests/RequestContextTest.php \Symfony\Component\Routing\Tests\RequestContextTest::testGetParameter()
File
- vendor/
symfony/ routing/ Tests/ RequestContextTest.php, line 85
Class
Namespace
Symfony\Component\Routing\TestsCode
public function testGetParameter() {
$requestContext = new RequestContext();
$requestContext
->setParameters(array(
'foo' => 'bar',
));
$this
->assertEquals('bar', $requestContext
->getParameter('foo'));
$this
->assertNull($requestContext
->getParameter('baz'));
}