Skip to content

Commit

Permalink
Faster NamePrettifier->prettifyTestMethodName()
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Mar 13, 2024
1 parent 59ad5c9 commit 6dde7c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Logging/TestDox/NamePrettifier.php
Expand Up @@ -23,7 +23,6 @@
use function is_bool;
use function is_float;
use function is_int;
use function is_numeric;
use function is_object;
use function is_scalar;
use function method_exists;
Expand Down Expand Up @@ -147,7 +146,7 @@ public function prettifyTestMethodName(string $name): string
if ($i > 0 && $name[$i] >= 'A' && $name[$i] <= 'Z') {
$buffer .= ' ' . strtolower($name[$i]);
} else {
$isNumeric = is_numeric($name[$i]);
$isNumeric = $name[$i] >= '0' && $name[$i] <= '9';

if (!$wasNumeric && $isNumeric) {
$buffer .= ' ';
Expand Down

0 comments on commit 6dde7c9

Please sign in to comment.