예제 #1
0
 public function testHasPhone()
 {
     $phone = new ContactPhone();
     $contact = new Contact();
     $this->assertFalse($contact->hasPhone($phone));
     $contact->addPhone($phone);
     $this->assertTrue($contact->hasPhone($phone));
 }