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