You are here

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

@covers \Symfony\Component\HttpFoundation\Session\Session::count

File

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

Class

SessionTest
SessionTest.

Namespace

Symfony\Component\HttpFoundation\Tests\Session

Code

public function testGetCount() {
  $this->session
    ->set('hello', 'world');
  $this->session
    ->set('symfony', 'rocks');
  $this
    ->assertCount(2, $this->session);
}