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 committed Mar 9, 2024
1 parent 0f715c1 commit a06a85d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Event/Value/Test/TestDoxBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ public static function fromTestCase(TestCase $testCase): TestDox
*/
public static function fromClassNameAndMethodName(string $className, string $methodName): TestDox
{
$prettifier = new NamePrettifier;
$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 a06a85d

Please sign in to comment.