Skip to content

Commit f7575e5

Browse files
committed
Remove not used parameter
1 parent 764adfa commit f7575e5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/ResultRenderer/CliResultRendererTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use PhpSchool\PhpWorkshop\ResultRenderer\Cli\RequestFailureRenderer;
99
use PhpSchool\PhpWorkshop\ResultRenderer\CliResultRenderer;
1010
use PhpSchool\PhpWorkshop\Utils\ArrayObject;
11-
use PhpSchool\PhpWorkshop\Utils\RequestRenderer;
1211

1312
/**
1413
* @author Aydin Hassan <aydin@hotmail.co.uk>
@@ -42,7 +41,7 @@ function (RequestFailure $failure) use ($failureRenderer) {
4241
'ACTUAL OUTPUT'
4342
);
4443
$result = new CliResult([$failure]);
45-
$renderer = new CliResultRenderer($result, new RequestRenderer);
44+
$renderer = new CliResultRenderer($result);
4645

4746
$expected = "Some executions of your solution produced incorrect output!\n";
4847
$expected .= "\e[33m──────────────────────────────────────────────────\e[0m\n";
@@ -72,7 +71,7 @@ function (RequestFailure $failure) use ($failureRenderer) {
7271
'ACTUAL OUTPUT'
7372
);
7473
$result = new CliResult([$failure]);
75-
$renderer = new CliResultRenderer($result, new RequestRenderer);
74+
$renderer = new CliResultRenderer($result);
7675

7776
$expected = "Some executions of your solution produced incorrect output!\n";
7877
$expected .= "\e[33m──────────────────────────────────────────────────\e[0m\n";

0 commit comments

Comments
 (0)