Skip to content

Commit

Permalink
Fix interface check
Browse files Browse the repository at this point in the history
  • Loading branch information
AydinHassan committed Dec 10, 2016
1 parent 8d5c4c5 commit 9ce5c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ResultRenderer/ResultsRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use PhpSchool\PhpWorkshop\Exercise\ProvidesSolution;
use PhpSchool\PhpWorkshop\Factory\ResultRendererFactory;
use PhpSchool\PhpWorkshop\Output\OutputInterface;
use PhpSchool\PhpWorkshop\Result\ResultGroupInterface;
use PhpSchool\PhpWorkshop\Result\SuccessInterface;
use PhpSchool\PSX\SyntaxHighlighter;
use PhpSchool\PhpWorkshop\Exercise\ExerciseInterface;
Expand Down Expand Up @@ -96,7 +97,7 @@ public function render(
$failures = [];
foreach ($results as $result) {
if ($result instanceof SuccessInterface
|| ($result instanceof ResultAggregator && $result->isSuccessful())
|| ($result instanceof ResultGroupInterface && $result->isSuccessful())
) {
$successes[] = sprintf(' ✔ Check: %s', $result->getCheckName());
} else {
Expand Down

0 comments on commit 9ce5c99

Please sign in to comment.