コード例 #1
0
 /**
  * @expectedException \Exception
  */
 public function testGetAttendeesWithMalformedJsonString()
 {
     $content = "malformed json";
     $this->eventbrite->expects($this->once())->method('post')->will($this->returnValue($content));
     $this->eventbriteProvider->getAttendees('test');
 }
コード例 #2
0
 /**
  * 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);
 }