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