From 29c7b9bcb478373df8e72207ea940207db185675 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 31 May 2022 16:06:30 +0200 Subject: [PATCH] [8.x] Ignore skipped tests (#42585) * Ignore skipped tests * wip --- phpunit.xml.dist | 1 + tests/IgnoreSkippedPrinter.php | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/IgnoreSkippedPrinter.php diff --git a/phpunit.xml.dist b/phpunit.xml.dist index bff45979a585..cc45c172e33c 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -7,6 +7,7 @@ convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" + printerClass="Illuminate\Tests\IgnoreSkippedPrinter" processIsolation="false" stopOnError="false" stopOnFailure="false" diff --git a/tests/IgnoreSkippedPrinter.php b/tests/IgnoreSkippedPrinter.php new file mode 100644 index 000000000000..521c3e6aa490 --- /dev/null +++ b/tests/IgnoreSkippedPrinter.php @@ -0,0 +1,26 @@ += 9) { + class IgnoreSkippedPrinter extends PHPUnit9ResultPrinter + { + protected function printSkipped(TestResult $result): void + { + // + } + } +} else { + class IgnoreSkippedPrinter extends PHPUnit8ResultPrinter + { + protected function printSkipped(TestResult $result): void + { + // + } + } +}