Example #1
0
 public function testAddRemoveAttendees()
 {
     $a = new Attendee('*****@*****.**');
     $a2 = new Attendee('*****@*****.**');
     $this->object->addAttendee($a);
     $this->assertCount(1, $this->object->getAttendees());
     $this->object->addAttendee($a2);
     $this->assertCount(2, $this->object->getAttendees());
     $this->object->removeAttendee($a);
     $this->assertCount(1, $this->object->getAttendees());
     $this->assertFalse($this->object->getAttendees()->contains($a));
 }