This commit is contained in:
Nuno Maduro
2022-09-15 14:31:53 +01:00
parent ddb75441e7
commit 797ebb2986
2 changed files with 1 additions and 5 deletions

View File

@ -5,7 +5,6 @@ declare(strict_types=1);
namespace Pest; namespace Pest;
use PHPUnit\TestRunner\TestResult\Facade; use PHPUnit\TestRunner\TestResult\Facade;
use PHPUnit\TestRunner\TestResult\TestResult;
use PHPUnit\TextUI\Application; use PHPUnit\TextUI\Application;
use PHPUnit\TextUI\Configuration\Registry; use PHPUnit\TextUI\Configuration\Registry;
@ -91,7 +90,7 @@ final class Kernel
$returnCode = self::FAILURE_EXIT; $returnCode = self::FAILURE_EXIT;
if ($result->wasSuccessfulIgnoringPhpunitWarnings() if ($result->wasSuccessfulIgnoringPhpunitWarnings()
&& ! $result->hasTestTriggeredPhpunitWarningEvents()) { && !$result->hasTestTriggeredPhpunitWarningEvents()) {
$returnCode = self::SUCCESS_EXIT; $returnCode = self::SUCCESS_EXIT;
} }
@ -118,11 +117,9 @@ final class Kernel
$returnCode = self::FAILURE_EXIT; $returnCode = self::FAILURE_EXIT;
} }
if ($configuration->failOnSkipped() && $result->hasTestSkippedEvents()) { if ($configuration->failOnSkipped() && $result->hasTestSkippedEvents()) {
$returnCode = self::FAILURE_EXIT; $returnCode = self::FAILURE_EXIT;
} }
} }
if ($result->hasTestErroredEvents()) { if ($result->hasTestErroredEvents()) {

View File

@ -1,2 +1 @@
<?php <?php