You are here

public function SessionTest::testRemove in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/Session/SessionTest.php \Symfony\Component\HttpFoundation\Tests\Session\SessionTest::testRemove()

@dataProvider setProvider

File

vendor/symfony/http-foundation/Tests/Session/SessionTest.php, line 146

Class

SessionTest
SessionTest.

Namespace

Symfony\Component\HttpFoundation\Tests\Session

Code

public function testRemove($key, $value) {
  $this->session
    ->set('hi.world', 'have a nice day');
  $this->session
    ->set($key, $value);
  $this->session
    ->remove($key);
  $this
    ->assertEquals(array(
    'hi.world' => 'have a nice day',
  ), $this->session
    ->all());
}