1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 5 Jan 2025 08:57:05 +0100
Subject: Group nophpunit11 for tests failing with PHPUnit 11
---
tests/Integration/SocketFactoryTest.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/Integration/SocketFactoryTest.php b/tests/Integration/SocketFactoryTest.php
index a477424..1b7ab43 100644
--- a/tests/Integration/SocketFactoryTest.php
+++ b/tests/Integration/SocketFactoryTest.php
@@ -17,6 +17,7 @@ use Pheanstalk\Values\Timeout;
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
+use PHPUnit\Framework\Attributes\RequiresPhpunit;
use PHPUnit\Framework\TestCase;
#[CoversClass(SocketFactory::class)]
@@ -57,7 +58,7 @@ final class SocketFactoryTest extends TestCase
/**
* @param class-string<SocketInterface> $expectedImplementationClass
*/
- #[DataProvider('factoryProvider')]
+ #[RequiresPhpunit('< 11')]
public function testImplementations(SocketFactoryInterface $factory, string $expectedImplementationClass): void
{
Assert::assertInstanceOf($expectedImplementationClass, $factory->create());
|