public function testFetchFeedSubmissionsToken2() { resetLog(); $this->object->setMock(true, array('fetchFeedSubmissionsToken.xml', 'fetchFeedSubmissionsToken2.xml')); //with using token $this->object->setUseToken(); $ok = $this->object->fetchFeedSubmissions(); $this->assertNull($ok); $check = parseLog(); $this->assertEquals('Mock files array set.', $check[1]); $this->assertEquals('Fetched Mock File: mock/fetchFeedSubmissionsToken.xml', $check[2]); $this->assertEquals('Recursively fetching more Feeds', $check[3]); $this->assertEquals('Fetched Mock File: mock/fetchFeedSubmissionsToken2.xml', $check[4]); $this->assertFalse($this->object->hasToken()); $o = $this->object->getOptions(); $this->assertEquals('GetFeedSubmissionListByNextToken', $o['Action']); $r = $this->object->getFeedList(); $this->assertArrayHasKey(0, $r); $this->assertEquals('9876543210', $r[0]['FeedSubmissionId']); $this->assertEquals('_MOCK_FEED_', $r[0]['FeedType']); $this->assertEquals('2012-12-12T12:12:12+00:00', $r[0]['SubmittedDate']); $this->assertEquals('_SUBMITTED_', $r[0]['FeedProcessingStatus']); $this->assertEquals('1234567890', $r[1]['FeedSubmissionId']); $this->assertEquals('_MOCK_FEED_', $r[1]['FeedType']); $this->assertEquals('2012-12-12T12:12:12+00:00', $r[1]['SubmittedDate']); $this->assertEquals('_SUBMITTED_', $r[1]['FeedProcessingStatus']); }