Exceptions change in Check\Colors, add in Cmbined\ArrayHandler

Chech\Colors now throws correct exceptions for wrong values
Combined\ArrayHandler will throw errors and not return false
This commit is contained in:
Clemens Schwaighofer
2023-08-31 12:07:28 +09:00
parent cd81d15d9a
commit 2fe37bf92a
6 changed files with 42 additions and 39 deletions

View File

@@ -321,7 +321,7 @@ final class CoreLibsCheckColorsTest extends TestCase
*/
public function testValidateColorException(int $flag): void
{
$this->expectException(\Exception::class);
$this->expectException(\UnexpectedValueException::class);
\CoreLibs\Check\Colors::validateColor('#ffffff', $flag);
}
}