Skip to content

Commit 7fade15

Browse files
authored
Support non-breaking spaces in function names.
[closes #21]
1 parent 4832122 commit 7fade15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PrettyPrinter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public function endTest(Test $test, float $time): void
3131

3232
$testMethodName = \PHPUnit\Util\Test::describe($test);
3333

34+
// Convert non-breaking method name to camelCase
35+
$testMethodName[1] = str_replace(' ', '', ucwords($testMethodName[1], ' '));
36+
3437
// Convert snakeCase method name to camelCase
3538
$testMethodName[1] = str_replace('_', '', ucwords($testMethodName[1], '_'));
3639

0 commit comments

Comments
 (0)