Skip to content

Commit 23e1d9f

Browse files
Merge branch '10.5' into 11.0
2 parents 300d85f + d138c06 commit 23e1d9f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

ChangeLog-11.0.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ All notable changes of the PHPUnit 11.0 release series are documented in this fi
44

55
## [11.0.6] - 2024-MM-DD
66

7+
### Changed
8+
9+
* [#5727](https://github.com/sebastianbergmann/phpunit/pull/5727): Prevent duplicate call of `NamePrettifier::prettifyTestMethodName()`
10+
* [#5739](https://github.com/sebastianbergmann/phpunit/pull/5739): Micro-optimize `NamePrettifier::prettifyTestMethodName()`
11+
* [#5740](https://github.com/sebastianbergmann/phpunit/pull/5740): Micro-optimize `TestRunner::runTestWithTimeout()`
12+
* [#5741](https://github.com/sebastianbergmann/phpunit/pull/5741): Save call to `Telemetry\System::snapshot()`
13+
* [#5742](https://github.com/sebastianbergmann/phpunit/pull/5742): Prevent file IO when not strictly necessary
14+
* [#5743](https://github.com/sebastianbergmann/phpunit/pull/5743): Prevent unnecessary `ExecutionOrderDependency::getTarget()` call
15+
* [#5744](https://github.com/sebastianbergmann/phpunit/pull/5744): Simplify `NamePrettifier::prettifyTestMethodName()`
16+
17+
### Fixed
18+
719
* [#5351](https://github.com/sebastianbergmann/phpunit/issues/5351): Incorrect code coverage metadata does not prevent code coverage data from being collected
820
* [#5729](https://github.com/sebastianbergmann/phpunit/pull/5729): `assertArrayIsIdenticalToArrayOnlyConsideringListOfKeys()` does not correctly handle array order
921

src/Logging/TestDox/NamePrettifier.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use function is_object;
2828
use function is_scalar;
2929
use function method_exists;
30-
use function ord;
3130
use function preg_quote;
3231
use function preg_replace;
3332
use function range;
@@ -145,9 +144,7 @@ public function prettifyTestMethodName(string $name): string
145144
$wasNumeric = false;
146145

147146
foreach (range(0, strlen($name) - 1) as $i) {
148-
$ord = ord($name[$i]);
149-
150-
if ($i > 0 && $ord >= 65 && $ord <= 90) {
147+
if ($i > 0 && $name[$i] >= 'A' && $name[$i] <= 'Z') {
151148
$buffer .= ' ' . strtolower($name[$i]);
152149
} else {
153150
$isNumeric = is_numeric($name[$i]);

0 commit comments

Comments
 (0)