diff --git a/src/Result.php b/src/Result.php index d9f1f0e3..9b3a83e5 100644 --- a/src/Result.php +++ b/src/Result.php @@ -54,8 +54,8 @@ public static function exitCode(Configuration $configuration, TestResult $result $returnCode = self::FAILURE_EXIT; } - $warnings = $result->numberOfTestsWithTestTriggeredPhpunitWarningEvents() + - +count($result->warnings()) + $warnings = $result->numberOfTestsWithTestTriggeredPhpunitWarningEvents() + + count($result->warnings()) + count($result->phpWarnings()); if ($configuration->failOnWarning() && $warnings > 0) {