/** * @dataProvider hex2rgbProvider **/ public function testHex2rgb($sHexValue, $aExpected) { $aRGB = CSSColorUtils::hex2rgb($sHexValue); $this->assertSame($aRGB, $aExpected); }
public function fromHex($sValue) { $aRGB = CSSColorUtils::hex2rgb($sValue); return $this->fromRGB($aRGB); }