Skip to content

Commit 155f2f6

Browse files
Extract special case into separate test method
1 parent d0e704d commit 155f2f6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/unit/Logging/TestDox/NamePrettifierTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,6 @@ public static function methodNameProvider(): array
8888
'',
8989
'test',
9090
],
91-
[
92-
'This is a test',
93-
'testThisIsATest',
94-
],
95-
[
96-
'This is a test',
97-
'testThisIsATest2',
98-
],
9991
[
10092
'This is a test',
10193
'this_is_a_test',
@@ -208,4 +200,12 @@ public function test_TestCase_can_be_prettified(string $expected, TestCase $test
208200
{
209201
$this->assertSame($expected, (new NamePrettifier)->prettifyTestCase($testCase, $colorize));
210202
}
203+
204+
public function testStripsNumericSuffixFromTestMethodNameWhenTestMethodNameWithoutThatSuffixWasPreviouslyProcessed(): void
205+
{
206+
$namePrettifier = new NamePrettifier;
207+
208+
$this->assertSame('This is a test', $namePrettifier->prettifyTestMethodName('testThisIsATest'));
209+
$this->assertSame('This is a test', $namePrettifier->prettifyTestMethodName('testThisIsATest2'));
210+
}
211211
}

0 commit comments

Comments
 (0)