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