@covers Symfony\Component\HttpFoundation\ParameterBag::getIterator
public function testGetIterator() {
$parameters = array(
'foo' => 'bar',
'hello' => 'world',
);
$bag = new ParameterBag($parameters);
$i = 0;
foreach ($bag as $key => $val) {
$i++;
$this
->assertEquals($parameters[$key], $val);
}
$this
->assertEquals(count($parameters), $i);
}