You are here

public function SessionTest::testHas in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\Session

Code

public function testHas($key, $value) {
  $this->session
    ->set($key, $value);
  $this
    ->assertTrue($this->session
    ->has($key));
  $this
    ->assertFalse($this->session
    ->has($key . 'non_value'));
}