public function testBirthAfterDeathException() { $persona = new Persona(); $persona->setDateOfDeath(new DateTime('2000-01-01')); $this->setExpectedException(LogicException::class); $persona->setDateOfBirth(new DateTime('2001-01-01')); }