From 3208499c1cd0ac112ba9208aca67e78b2039cd4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berislav=20Balogovi=C4=87?= Date: Fri, 13 Dec 2024 00:35:40 +0100 Subject: [PATCH] Fix --- .github/workflows/tests.yaml | 6 ++++++ tests/Test/InteractsWithPurgatoryTest.php | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index f3d1cfe..c4b0800 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -55,6 +55,12 @@ jobs: ini-values: zend.exception_ignore_args=false tools: flex + - name: Downgrade PHPUnit for PHP 8.1 + if: matrix.php == '8.1' + run: | + composer require --dev --no-update phpunit/phpunit:^10.5 + sed -i 's/failOnPhpunitDeprecation="true"//g' phpunit.dist.xml + - name: Install Dependencies uses: ramsey/composer-install@v2 with: diff --git a/tests/Test/InteractsWithPurgatoryTest.php b/tests/Test/InteractsWithPurgatoryTest.php index 0a6842d..a69c93a 100644 --- a/tests/Test/InteractsWithPurgatoryTest.php +++ b/tests/Test/InteractsWithPurgatoryTest.php @@ -4,7 +4,6 @@ namespace Sofascore\PurgatoryBundle\Tests\Test; -use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Sofascore\PurgatoryBundle\Purger\AsyncPurger; @@ -18,7 +17,6 @@ use Symfony\Component\DependencyInjection\Container; use Symfony\Component\Messenger\MessageBusInterface; -#[CoversClass(InteractsWithPurgatory::class)] final class InteractsWithPurgatoryTest extends TestCase { #[DataProvider('provideTraitTestCases')]