Beispiel #1
0
 public function case_get_iterator()
 {
     $this->given($group = new SUT('foo'), $exception1 = new SUT('bar'), $group['bar'] = $exception1)->when($result = $group->getIterator())->then->object($result)->isInstanceOf('ArrayIterator')->array(iterator_to_array($result))->isEqualTo(['bar' => $exception1]);
 }