public function testParentSelfChildException()
 {
     $parent = $this->createPersonaStub(ChildrenCollection::GENDER_MALE);
     $collection = new ChildrenCollection($parent);
     $this->setExpectedException(Exception\LogicException::class);
     $collection->add($parent);
 }
 public function testAlreadyHasChild()
 {
     $validator = new BaseChildrenValidator();
     $parent = $this->createPersonaStub($validator::GENDER_MALE);
     $collection = new ChildrenCollection($parent);
     $child = $this->createPersonaStub();
     $collection->add($child);
     $this->assertFalse($validator->isValidChild($collection, $child));
 }