public function testHasEmail() { $email = new ContactEmail(); $contact = new Contact(); $this->assertFalse($contact->hasEmail($email)); $contact->addEmail($email); $this->assertTrue($contact->hasEmail($email)); }