File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
src/TextUI/Output/TestDox Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,12 @@ public function print(TestResult $result, array $tests): void
77
77
}
78
78
79
79
$ this ->printBeforeClassOrAfterClassErrors (
80
- 'These before-first-test methods errored: ' ,
80
+ 'before-first-test ' ,
81
81
$ beforeFirstTestMethodErrored ,
82
82
);
83
83
84
84
$ this ->printBeforeClassOrAfterClassErrors (
85
- 'These after-last-test methods errored: ' ,
85
+ 'after-last-test ' ,
86
86
$ afterLastTestMethodErrored ,
87
87
);
88
88
}
@@ -436,18 +436,23 @@ private function symbolFor(TestStatus $status): string
436
436
}
437
437
438
438
/**
439
- * @param non-empty-string $header
439
+ * @param 'after-last-test'|'before-first-test' $type
440
440
* @param array<non-empty-string, AfterLastTestMethodErrored|BeforeFirstTestMethodErrored> $errors
441
441
*/
442
- private function printBeforeClassOrAfterClassErrors (string $ header , array $ errors ): void
442
+ private function printBeforeClassOrAfterClassErrors (string $ type , array $ errors ): void
443
443
{
444
444
if (empty ($ errors )) {
445
445
return ;
446
446
}
447
447
448
- $ index = 0 ;
448
+ $ this ->printer ->print (
449
+ sprintf (
450
+ 'These %s methods errored: ' . PHP_EOL . PHP_EOL ,
451
+ $ type ,
452
+ ),
453
+ );
449
454
450
- $ this -> printer -> print ( $ header . PHP_EOL . PHP_EOL ) ;
455
+ $ index = 0 ;
451
456
452
457
foreach ($ errors as $ method => $ error ) {
453
458
$ this ->printer ->print (
You can’t perform that action at this time.
0 commit comments