<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
/**
* try to fail it with invalid input
*
- * @todo What's corect behaviour here? An exception?
+ * @todo What's correct behaviour here? An exception?
*/
public function testRandomNameNegativeLength()
{
'input' => '',
'valid' => false,
],
- 'nullHex' => [
- 'input' => null,
- 'valid' => false,
- ],
];
}
/**
* Tests if the string is a valid hexadecimal value
*
- * @param string|null $input
- * @param bool $valid
+ * @param string $input Input string
+ * @param bool $valid Whether testing on valid or invalid
*
* @dataProvider dataIsHex
*/
- public function testIsHex(string $input = null, bool $valid = false)
+ public function testIsHex(string $input, bool $valid = false)
{
self::assertEquals($valid, Strings::isHex($input));
}