diff --git a/src/Codeception/Extension/AxeCeptionReporter.php b/src/Codeception/Extension/AxeCeptionReporter.php index 64256e0..ea2d9a7 100644 --- a/src/Codeception/Extension/AxeCeptionReporter.php +++ b/src/Codeception/Extension/AxeCeptionReporter.php @@ -90,6 +90,10 @@ public function resultPrintAfter(PrintResultEvent $printResultEvent): void $testsVm = []; $testIndex = 0; + if ($this->axeResults === []) { + return; + } + foreach ($this->axeResults as $axeResult) { $test = $axeResult['test']; /** @var AxeStep[] $axeSteps */