public function testAddSpouseSuccess() { $husband = new Persona(Persona::GENDER_MALE); $wife = new Persona(Persona::GENDER_FEMALE); $husband->addSpouse($wife); $this->assertContains($wife, $husband->getSpouses()); }
public function testAddSpouseSuccess() { $husband = new Persona(Persona::GENDER_MALE); $wife = new Persona(Persona::GENDER_FEMALE); $husband->addSpouse($wife); $this->assertContains($wife, $husband->getSpouses()); }