public function AttributeBagTest::testGetIterator

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

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/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);
}