You are here

public function AttributeBagTest::testGetIterator in Zircon Profile 8

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

@covers Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::getIterator

File

vendor/symfony/http-foundation/Tests/Session/Attribute/AttributeBagTest.php, line 175

Class

AttributeBagTest
Tests AttributeBag.

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Attribute

Code

public function testGetIterator() {
  $i = 0;
  foreach ($this->bag as $key => $val) {
    $this
      ->assertEquals($this->array[$key], $val);
    ++$i;
  }
  $this
    ->assertEquals(count($this->array), $i);
}