public function testSetMarketplaceIds() { $ok = $this->object->setMarketplaceIds('string1'); $this->assertNull($ok); $o = $this->object->getOptions(); $this->assertArrayHasKey('MarketplaceIdList.Id.1', $o); $this->assertEquals('string1', $o['MarketplaceIdList.Id.1']); $ok2 = $this->object->setMarketplaceIds(array('string1', 'string2')); $this->assertNull($ok2); $o2 = $this->object->getOptions(); $this->assertArrayHasKey('MarketplaceIdList.Id.1', $o2); $this->assertArrayHasKey('MarketplaceIdList.Id.2', $o2); $this->assertEquals('string1', $o2['MarketplaceIdList.Id.1']); $this->assertEquals('string2', $o2['MarketplaceIdList.Id.2']); $this->object->setMarketplaceIds('stringx'); $o3 = $this->object->getOptions(); $this->assertArrayNotHasKey('MarketplaceIdList.Id.2', $o3); $this->assertFalse($this->object->setMarketplaceIds(null)); }