public function SessionTest::testHas in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/Session/SessionTest.php \Symfony\Component\HttpFoundation\Tests\Session\SessionTest::testHas()
@dataProvider setProvider
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ SessionTest.php, line 99
Class
- SessionTest
- SessionTest.
Namespace
Symfony\Component\HttpFoundation\Tests\SessionCode
public function testHas($key, $value) {
$this->session
->set($key, $value);
$this
->assertTrue($this->session
->has($key));
$this
->assertFalse($this->session
->has($key . 'non_value'));
}