Skip to content

Commit e350e38

Browse files
staabmsebastianbergmann
authored andcommitted
Prevent duplicate prettify in TestDoxBuilder
1 parent c811a10 commit e350e38

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Event/Value/Test/TestDoxBuilder.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ public static function fromTestCase(TestCase $testCase): TestDox
3838
*/
3939
public static function fromClassNameAndMethodName(string $className, string $methodName): TestDox
4040
{
41-
$prettifier = new NamePrettifier;
41+
$prettifier = new NamePrettifier;
42+
$prettyMethod = $prettifier->prettifyTestMethodName($methodName);
4243

4344
return new TestDox(
4445
$prettifier->prettifyTestClassName($className),
45-
$prettifier->prettifyTestMethodName($methodName),
46-
$prettifier->prettifyTestMethodName($methodName),
46+
$prettyMethod,
47+
$prettyMethod,
4748
);
4849
}
4950
}

0 commit comments

Comments
 (0)