public function testExportInsideValidateMethod_ComposedClass() { $f = new Family(); $f->setFather(new Person("Pa", 46)); $f->setMother(new Person("Ma", 40)); $out = $this->familyValidator->validate($f); $this->assertEquals("Pa-Ma", $out); }
public function setUp() { $this->person = new Person("fabs", 35); $this->localizedPerson = new LocalizedPerson("fabs", 35, "Rue De La Roquette"); $this->noGetEntity = new NoGetters("laurent"); $family = new Family(); $family->setFather(new Person("Pa", 50)); $family->setMother(new Person("Ma", 48)); $this->family = $family; }