From f2e037f8ea4c4bac1a5a36b4d8334f2aa581491a Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sun, 17 Mar 2024 10:03:35 +0100 Subject: [PATCH] Make phpunit fail on deprecation warnings (#989) (cherry picked from commit 4d36e9c16f4820c2ed9360bc818982f3c02a08f5) --- .github/workflows/main.yml | 3 +++ phpunit.xml.dist | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b7a3b22..fe456395 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,6 +46,7 @@ jobs: with: coverage: "none" php-version: "${{ matrix.php-version }}" + ini-file: "development" tools: composer:v2 - name: "Install dependencies" run: "composer update --no-progress --prefer-dist ${{ matrix.flags }}" @@ -62,6 +63,7 @@ jobs: with: coverage: "none" php-version: "8.2" + ini-file: "development" tools: composer:v2 - name: "Install PHP 8 dependencies" run: "composer update --no-progress --prefer-dist" @@ -78,6 +80,7 @@ jobs: with: coverage: "none" php-version: "7.4" + ini-file: "development" tools: composer:v2 - name: "Install PHP 8 dependencies" run: "composer update --no-progress --prefer-dist" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 53bc0913..daf6142c 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,6 +4,7 @@ xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" backupGlobals="false" colors="true" + convertDeprecationsToExceptions="true" beStrictAboutTestsThatDoNotTestAnything="false" bootstrap="./test/bootstrap.php">