readColor($sxml, $background); self::assertSame($expectedResult, $result); } } public function providerColorIndexes(): array { return [ 'subtract 7 to return system color 4' => ['FF00FF00', ''], 'default foreground color when out of range' => ['FF000000', ''], 'default background color when out of range' => ['FFFFFFFF', '', true], 'rgb specified' => ['FF123456', '', true], ]; } }