public function testSetColor() { $text = $this->cursor->text(); $this->assertInstanceOf('AmCharts\\Chart\\Setting\\Text', $text); $text->setColor('#ff0000'); $color = $text->getColor(); $this->assertInstanceOf('AmCharts\\Chart\\Setting\\Color', $color); $this->assertEquals('#ff0000', $color->toString()); }