Skip to content

Commit 64dea84

Browse files
Merge branch '11.5' into 12.2
2 parents 4acdb58 + 7587997 commit 64dea84

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

ChangeLog-12.2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes of the PHPUnit 12.2 release series are documented in this fi
88

99
* [#6254](https://github.com/sebastianbergmann/phpunit/issues/6254): `defects,random`configuration is supported by implementation, but it is not allowed by the XML configuration file schema
1010
* [#6259](https://github.com/sebastianbergmann/phpunit/issues/6259): Order of tests which use data from data providers is not affected by test sorting
11+
* [#6266](https://github.com/sebastianbergmann/phpunit/issues/6266): Superfluous whitespace in TestDox output when test method name has a number after the `test` prefix
1112

1213
## [12.2.6] - 2025-07-04
1314

src/Logging/TestDox/NamePrettifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function prettifyTestMethodName(string $name): string
167167
}
168168
}
169169

170-
return $buffer;
170+
return trim($buffer);
171171
}
172172

173173
public function prettifyTestCase(TestCase $test, bool $colorize): string

tests/unit/Logging/TestDox/NamePrettifierTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ public static function methodNameProvider(): array
116116
'Sets redirect header on 302',
117117
'testSetsRedirectHeaderOn302',
118118
],
119+
[
120+
'100 users',
121+
'test100Users',
122+
],
119123
];
120124
}
121125

0 commit comments

Comments
 (0)