We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b96926 commit 13b893dCopy full SHA for 13b893d
src/Logging/TestDox/NamePrettifier.php
@@ -27,7 +27,6 @@
27
use function is_object;
28
use function is_scalar;
29
use function method_exists;
30
-use function ord;
31
use function preg_quote;
32
use function preg_replace;
33
use function range;
@@ -145,9 +144,7 @@ public function prettifyTestMethodName(string $name): string
145
144
$wasNumeric = false;
146
147
foreach (range(0, strlen($name) - 1) as $i) {
148
- $ord = ord($name[$i]);
149
-
150
- if ($i > 0 && $ord >= 65 && $ord <= 90) {
+ if ($i > 0 && $name[$i] >= 'A' && $name[$i] <= 'Z') {
151
$buffer .= ' ' . strtolower($name[$i]);
152
} else {
153
$isNumeric = is_numeric($name[$i]);
0 commit comments