/**
  * @depends testFetchFeedResult
  */
 public function testSaveFeed($o)
 {
     resetLog();
     $this->assertFalse($this->object->saveFeed('mock/saveFeed.xml'));
     //nothing yet
     $o->saveFeed(__DIR__ . '/../../mock/saveFeed.xml');
     $check = parseLog();
     $this->assertEquals('Successfully saved feed #77 at ' . __DIR__ . '/../../mock/saveFeed.xml', $check[0]);
 }
/**
 * This function will get the processing results of a feed previously sent to Amazon and give the data.
 * In order to do this, a feed ID is required. The response is in XML.
 */
function getFeedResult($feedId)
{
    try {
        $amz = new AmazonFeedResult("myStore", $feedId);
        //feed ID can be quickly set by passing it to the constructor
        $amz->setFeedId($feedId);
        //otherwise, it must be set this way
        $amz->fetchFeedResult();
        return $amz->getRawFeed();
    } catch (Exception $ex) {
        echo 'There was a problem with the Amazon library. Error: ' . $ex->getMessage();
    }
}