https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d55ecb9
)
Fix StringTest
author
Philipp
<admin@philipp.info>
Sun, 18 Oct 2020 18:42:13 +0000
(20:42 +0200)
committer
Philipp
<admin@philipp.info>
Sun, 18 Oct 2020 18:52:27 +0000
(20:52 +0200)
tests/src/Util/StringsTest.php
patch
|
blob
|
history
diff --git
a/tests/src/Util/StringsTest.php
b/tests/src/Util/StringsTest.php
index
9b22153
..
7160cb2
100644
(file)
--- a/
tests/src/Util/StringsTest.php
+++ b/
tests/src/Util/StringsTest.php
@@
-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));
}