/** * @dataProvider validInputForCreation * * #depends testCanBeCreatedFromValidInput * Sadly this is not supported by PHPUnit */ public function testCanBeConvertedToRGBColor($hue, $sat, $light, $alpha, $rgbString) { $hsl = new HSLColor($hue, $sat, $light, $alpha); $rgb = $hsl->toRGBColor(); $this->assertInstanceOf(RGBColor::class, $rgb); $string = $rgb->__toString(); $this->assertEquals($rgbString, $string); }