Exemple #1
0
 /**
  * @param ActivityPollRequest $request
  * @return ActivityTask
  */
 public function pollForActivityTask(ActivityPollRequest $request)
 {
     $result = new ActivityTask();
     $awsResult = $this->swfClient->pollForActivityTask($request->convertToArray());
     $result->initFromArray($awsResult);
     return $result;
 }
Exemple #2
0
 public function pollForActivityTaskDataProvider()
 {
     $inputFixture = json_decode($this->loadFixture(static::FIXTURE_ACTIVITY_POLL_REQUEST), true);
     $input = new ActivityPollRequest();
     $input->initFromArray($inputFixture);
     $mockExpectationFixture = json_decode($this->loadFixture(static::FIXTURE_ACTIVITY_POLL_RESPONSE), true);
     $expectation = new ActivityTask();
     $expectation->initFromArray($mockExpectationFixture);
     return array(array('success' => array(static::INDEX_SWF_CLIENT_REQUEST_MOCK => $inputFixture, static::INDEX_INPUT => $input, static::INDEX_SWF_CLIENT_RESPONSE_MOCK => $mockExpectationFixture, static::INDEX_EXPECTATION => $expectation)));
 }