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