public function testToString()
 {
     $expected = "Test *1*2*3*Test Town*Test County*SW3 4HG*Test Country";
     $donor = new Donor();
     $donor->setId(1);
     $donor->setFirstName('Test');
     $this->address->setPerson($donor);
     $this->assertEquals($donor, $this->address->getPerson());
     $this->address->setAddressLines(array(1, 2, 3))->setTown('Test Town')->setCounty('Test County')->setPostcode('SW3 4HG')->setCountry('Test Country');
     $result = $this->address->toString('*', Address::INCLUDE_PERSON, 0b111);
     $this->assertEquals($expected, trim($result));
 }
 /**
  * @param  \Opg\Core\Model\Entity\Address\Address $address
  *
  * @return Person
  */
 public function addAddress(Address $address = null)
 {
     $address->setPerson($this);
     $this->addresses->add($address);
     return $this;
 }