Beispiel #1
0
 public function testParseFromJson()
 {
     $attendeeObject = new Attendee();
     $attendeeObject->parseFromJson($this->responseArray);
     $this->assertThat($attendeeObject, $this->attributeEqualTo('firstName', $this->responseArray['firstName']));
     $this->assertThat($attendeeObject, $this->attributeEqualTo('lastName', $this->responseArray['lastName']));
     $this->assertThat($attendeeObject, $this->attributeEqualTo('email', $this->responseArray['email']));
     $this->assertThat($attendeeObject, $this->attributeEqualTo('groupName', $this->responseArray['groupName']));
 }