Fix StringTest

This commit is contained in:
Philipp Holzer 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
1 changed files with 3 additions and 3 deletions

View File

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