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