Skip to content

Commit c3c4859

Browse files
committed
Slowness report lines remove periods
Some users reported this could cause confusion with output detection searching for a period to indicate a passing test. PHPUnit displays a period for a passing test in its normal output.
1 parent 386f65b commit c3c4859

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SpeedTrap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ protected function getHiddenCount(): int
195195
*/
196196
protected function renderHeader(): void
197197
{
198-
echo sprintf("\n\nYou should really speed up these slow tests (>%sms)...\n", $this->slowThreshold);
198+
echo sprintf("\n\nYou should really speed up these slow tests (>%sms)\n", $this->slowThreshold);
199199
}
200200

201201
/**
@@ -211,7 +211,7 @@ protected function renderBody(): void
211211
$time = array_shift($slowTests);
212212
$seconds = $time / 1000;
213213

214-
echo sprintf(" %s. %ss to run %s\n", $i, $seconds, $label);
214+
echo sprintf(" %s) %ss to run %s\n", $i, $seconds, $label);
215215
}
216216
}
217217

@@ -221,7 +221,7 @@ protected function renderBody(): void
221221
protected function renderFooter(): void
222222
{
223223
if ($hidden = $this->getHiddenCount()) {
224-
printf("...and there %s %s more above your threshold hidden from view\n", $hidden == 1 ? 'is' : 'are', $hidden);
224+
printf("and there %s %s more above your threshold hidden from view\n", $hidden == 1 ? 'is' : 'are', $hidden);
225225
}
226226
}
227227

0 commit comments

Comments
 (0)