Skip to content

Commit

Permalink
Simplify footer output text
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkary committed Oct 17, 2022
1 parent c3c4859 commit 4473f76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SpeedTrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected function getHiddenCount(): int
*/
protected function renderHeader(): void
{
echo sprintf("\n\nYou should really speed up these slow tests (>%sms)\n", $this->slowThreshold);
echo sprintf("\n\nThe following tests were detected as slow (>%sms)\n", $this->slowThreshold);
}

/**
Expand All @@ -221,7 +221,7 @@ protected function renderBody(): void
protected function renderFooter(): void
{
if ($hidden = $this->getHiddenCount()) {
printf("and there %s %s more above your threshold hidden from view\n", $hidden == 1 ? 'is' : 'are', $hidden);
printf("and %s more slow tests hidden from view\n", $hidden);
}
}

Expand Down

0 comments on commit 4473f76

Please sign in to comment.