public function SessionTest::testReplace

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/SessionTest.php, line 83

Class

SessionTest
SessionTest

Namespace

Symfony\Component\HttpFoundation\Tests\Session

Code

public function testReplace() {
  $this->session
    ->replace(array(
    'happiness' => 'be good',
    'symfony' => 'awesome',
  ));
  $this
    ->assertEquals(array(
    'happiness' => 'be good',
    'symfony' => 'awesome',
  ), $this->session
    ->all());
  $this->session
    ->replace(array());
  $this
    ->assertEquals(array(), $this->session
    ->all());
}