Example #1
0
 public function testAddRemoveAttendee()
 {
     $attendee1 = $this->getMockAttendee();
     $attendee2 = $this->getMockAttendee();
     $attendee3 = $this->getMockAttendee();
     $this->event->addAttendee($attendee1);
     $this->event->addAttendee($attendee2);
     $this->event->addAttendee($attendee3);
     $this->assertEquals(array($attendee1, $attendee2, $attendee3), $this->event->getAttendees()->getValues());
     $this->event->removeAttendee($attendee2);
     $this->assertEquals(array($attendee1, $attendee3), $this->event->getAttendees()->getValues());
 }