Skip to content

Commit c54313d

Browse files
committed
Merge pull request #18 from JeroenDeDauw/rmda
Removed dead function argument
2 parents 76a26f8 + 22b17bd commit c54313d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/JohnKary/PHPUnit/Listener/SpeedTrapListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ protected function getReportLength()
236236
protected function getHiddenCount()
237237
{
238238
$total = count($this->slow);
239-
$showing = $this->getReportLength($this->slow);
239+
$showing = $this->getReportLength();
240240

241241
$hidden = 0;
242242
if ($total > $showing) {
@@ -261,7 +261,7 @@ protected function renderBody()
261261
{
262262
$slowTests = $this->slow;
263263

264-
$length = $this->getReportLength($slowTests);
264+
$length = $this->getReportLength();
265265
for ($i = 1; $i <= $length; ++$i) {
266266
$label = key($slowTests);
267267
$time = array_shift($slowTests);
@@ -275,7 +275,7 @@ protected function renderBody()
275275
*/
276276
protected function renderFooter()
277277
{
278-
if ($hidden = $this->getHiddenCount($this->slow)) {
278+
if ($hidden = $this->getHiddenCount()) {
279279
echo sprintf("...and there %s %s more above your threshold hidden from view", $hidden == 1 ? 'is' : 'are', $hidden);
280280
}
281281
}

0 commit comments

Comments
 (0)