public function testGetJsPdfColor() { $res = $this->obj->getJsPdfColor(); $this->assertEquals('["RGB",0.250000,0.501000,0.750000]', $res); $col = new \Com\Tecnick\Color\Model\Hsl(array('hue' => 0.583, 'saturation' => 0.5, 'lightness' => 0.5, 'alpha' => 0)); $res = $col->getJsPdfColor(); $this->assertEquals('["T"]', $res); }