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