/**
  * @expectedException \Exception
  */
 public function testGetAttendeesWithMalformedJsonString()
 {
     $content = "malformed json";
     $this->eventbrite->expects($this->once())->method('post')->will($this->returnValue($content));
     $this->eventbriteProvider->getAttendees('test');
 }
 /**
  * Gets the attendees of a specific event.
  *
  * @param string $eventId The event Id
  *
  * @return array A list of \Phplx\Raffle\Model\Attendee
  */
 public function getAttendees($eventId)
 {
     $content = $this->eventbrite->post('event_list_attendees', array('event_id' => $eventId));
     return $this->parseAttendees($content);
 }