public function testSetBackgroundColorIndex() { $encoder = new Encoder(); $result = $encoder->setBackgroundColorIndex('foo'); $this->assertInstanceOf('Intervention\\Gif\\Encoder', $result); $this->assertEquals('foo', $encoder->backgroundColorIndex); }