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