diff --git a/src/Event/Value/Test/TestDoxBuilder.php b/src/Event/Value/Test/TestDoxBuilder.php index 594029e1ac5..ae8f62dad26 100644 --- a/src/Event/Value/Test/TestDoxBuilder.php +++ b/src/Event/Value/Test/TestDoxBuilder.php @@ -36,10 +36,12 @@ public static function fromClassNameAndMethodName(string $className, string $met { $prettifier = new NamePrettifier; + $prettifiedMethodName = $prettifier->prettifyTestMethodName($methodName); + return new TestDox( $prettifier->prettifyTestClassName($className), - $prettifier->prettifyTestMethodName($methodName), - $prettifier->prettifyTestMethodName($methodName), + $prettifiedMethodName, + $prettifiedMethodName, ); } }