public function testSetSellerSkus()
 {
     $this->object->setStartTime('null');
     $this->assertNull($this->object->setSellerSkus(array('404', '808')));
     $o = $this->object->getOptions();
     $this->assertArrayHasKey('SellerSkus.member.1', $o);
     $this->assertEquals('404', $o['SellerSkus.member.1']);
     $this->assertArrayHasKey('SellerSkus.member.2', $o);
     $this->assertEquals('808', $o['SellerSkus.member.2']);
     $this->assertArrayNotHasKey('QueryStartDateTime', $o);
     $this->assertNull($this->object->setSellerSkus('808'));
     //causes reset
     $o2 = $this->object->getOptions();
     $this->assertArrayNotHasKey('SellerSkus.member.2', $o2);
     $this->assertFalse($this->object->setSellerSkus(null));
     $this->assertFalse($this->object->setSellerSkus(707));
 }
/**
 * This function will retrieve a list of all items with quantity that was adjusted within the past 24 hours.
 * The entire list of items is returned, with each item contained in an array.
 */
function getAmazonSupply()
{
    require '../includes/classes.php';
    //autoload classes, not needed if composer is being used
    try {
        $obj = new AmazonInventoryList("myStore");
        //store name matches the array key in the config file
        $obj->setUseToken();
        //tells the object to automatically use tokens right away
        $obj->setStartTime("- 24 hours");
        $obj->fetchInventoryList();
        //this is what actually sends the request
        return $obj->getSupply();
    } catch (Exception $ex) {
        echo 'There was a problem with the Amazon library. Error: ' . $ex->getMessage();
    }
}