/** * @dataProvider validInputForCreation * * #depends testCanBeCreatedFromValidInput * Sadly this is not supported by PHPUnit */ public function testCanBeSerializedToHexString($red, $green, $blue, $alpha, $hex) { $color = new RGBColor($red, $green, $blue, $alpha); $string = $color->toHexString(); $this->assertEquals($hex, $string); }