/**
  * @param Contact $contact
  */
 public function delete(Contact $contact)
 {
     unset($this->contacts[$contact->getEmail()]);
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function canHaveProperty()
 {
     $email = '*****@*****.**';
     $property = new Property('custon', 'value');
     $contact = new Contact($email, '*****@*****.**');
     $contact->addProperty($property);
     $this->assertTrue(in_array($property, $contact->getProperties()));
 }