public function testDateOfDeathFormating() { $persona = new Persona(); $persona->setDateOfDeath(new DateTime()); $format = 'Y-m-d'; $this->assertEquals(date($format), $persona->getDateOfDeath($format)); }