assertEquals($expectedResult, $result); } public function providerColorGetRed() { return require 'data/Style/ColorGetRed.php'; } /** * @dataProvider providerColorGetGreen * * @param mixed $expectedResult */ public function testGetGreen($expectedResult, ...$args) { $result = Color::getGreen(...$args); $this->assertEquals($expectedResult, $result); } public function providerColorGetGreen() { return require 'data/Style/ColorGetGreen.php'; } /** * @dataProvider providerColorGetBlue * * @param mixed $expectedResult */ public function testGetBlue($expectedResult, ...$args) { $result = Color::getBlue(...$args); $this->assertEquals($expectedResult, $result); } public function providerColorGetBlue() { return require 'data/Style/ColorGetBlue.php'; } /** * @dataProvider providerColorChangeBrightness * * @param mixed $expectedResult */ public function testChangeBrightness($expectedResult, ...$args) { $result = Color::changeBrightness(...$args); $this->assertEquals($expectedResult, $result); } public function providerColorChangeBrightness() { return require 'data/Style/ColorChangeBrightness.php'; } }