public function testInvalidConstructWithParents() { $male = Persona::GENDER_MALE; $father = new Persona($male); $this->setExpectedException(LogicException::class); $persona = new Persona(Persona::GENDER_UNDEFINED, [], $father, $father); $this->assertEmpty($persona->getMother()); }