Skip to content

Commit

Permalink
Prevent duplicate prettify in TestDoxBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Mar 9, 2024
1 parent 0f715c1 commit cf9aaa7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Event/Value/Test/TestDoxBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ public static function fromTestCase(TestCase $testCase): TestDox
public static function fromClassNameAndMethodName(string $className, string $methodName): TestDox
{
$prettifier = new NamePrettifier;
$prettyMethod = $prettifier->prettifyTestMethodName($methodName);

return new TestDox(
$prettifier->prettifyTestClassName($className),
$prettifier->prettifyTestMethodName($methodName),
$prettifier->prettifyTestMethodName($methodName),
$prettyMethod,
$prettyMethod,
);
}
}

0 comments on commit cf9aaa7

Please sign in to comment.