コード例 #1
0
 public function testParseFromJson()
 {
     $organizerObject = new Organizer();
     $organizerObject->parseFromJson($this->responseArray);
     $this->assertThat($organizerObject, $this->attributeEqualTo('organizerKey', $this->responseArray['organizerkey']));
     $this->assertThat($organizerObject, $this->attributeEqualTo('groupKey', $this->responseArray['groupkey']));
     $this->assertThat($organizerObject, $this->attributeEqualTo('email', $this->responseArray['email']));
     $this->assertThat($organizerObject, $this->attributeEqualTo('firstName', $this->responseArray['firstname']));
     $this->assertThat($organizerObject, $this->attributeEqualTo('lastName', $this->responseArray['lastname']));
     $this->assertThat($organizerObject, $this->attributeEqualTo('groupName', $this->responseArray['groupname']));
     $this->assertThat($organizerObject, $this->attributeEqualTo('status', $this->responseArray['status']));
     $this->assertThat($organizerObject, $this->attributeEqualTo('maximumAttendeesAllowed', $this->responseArray['maxnumattendeesallowed']));
 }