Skip to content

Commit

Permalink
Merge pull request #147 from php-school/fix-interface-check
Browse files Browse the repository at this point in the history
Fix interface check
  • Loading branch information
AydinHassan authored Dec 10, 2016
2 parents 8d5c4c5 + 9ce5c99 commit 6a6d9e1
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 6a6d9e1

Please sign in to comment.