You are here

public function SessionTest::testReplace 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::testReplace()

File

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

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());
}