/** * @covers Geissler\Converter\Model\Container::getIterator */ public function testGetIterator() { $this->assertInstanceOf('\\ArrayIterator', $this->object->getIterator()); $this->assertInstanceOf('\\Geissler\\Converter\\Model\\Persons', $this->object->setPerson(new Person())); $this->assertInstanceOf('\\Geissler\\Converter\\Model\\Persons', $this->object->setPerson(new Person())); foreach ($this->object as $person) { $this->assertInstanceOf('\\Geissler\\Converter\\Model\\Person', $person); } }