Fix StringTest

This commit is contained in:
Philipp 2020-10-18 20:42:13 +02:00
parent d55ecb9288
commit 8f0afa6399
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD

View file

@ -125,12 +125,12 @@ class StringsTest extends TestCase
/**
* Tests if the string is a valid hexadecimal value
*
* @param string $input
* @param bool $valid
* @param string|null $input
* @param bool $valid
*
* @dataProvider dataIsHex
*/
public function testIsHex(string $input, bool $valid)
public function testIsHex(string $input = null, bool $valid = false)
{
self::assertEquals($valid, Strings::isHex($input));
}