public function testGetSetNotifiedPersons() { $notfiedPersons = $this->poa->getNotifiedPersons(); for ($i = 0; $i < 5; $i++) { $notfiedPersons->add(new NotifiedPerson()); } $this->poa->setNotifiedPersons($notfiedPersons); $this->assertEquals($notfiedPersons, $this->poa->getNotifiedPersons()); unset($this->poa->{'notifiedPersons'}); $np = new NotifiedPerson(); $this->poa->addNotifiedPerson($np); $this->assertEquals($np, $this->poa->getNotifiedPersons()[0]); unset($this->poa->{'notifiedPersons'}); $this->assertTrue($this->poa->getNotifiedPersons() instanceof ArrayCollection); }