fix underscores in test names

This commit is contained in:
Fabio Ivona
2023-03-22 11:24:21 +01:00
parent 7a699e16db
commit 22467d05c8
3 changed files with 5 additions and 1 deletions

View File

@ -59,6 +59,8 @@ final class Str
*/
public static function evaluable(string $code): string
{
$code = str_replace('_', '__', $code);
$code = self::PREFIX.str_replace(' ', '_', $code);
// sticks to PHP8.2 function naming rules https://www.php.net/manual/en/functions.user-defined.php