From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sat, 12 Oct 2024 14:40:53 +0100
Subject: Ignore tests failing with PHPUnit 11

Bug-Debian: https://bugs.debian.org/1039800
---
 tests/Mockery/MockingNullableMethodsTest.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/Mockery/MockingNullableMethodsTest.php b/tests/Mockery/MockingNullableMethodsTest.php
index bb497c0..554929c 100644
--- a/tests/Mockery/MockingNullableMethodsTest.php
+++ b/tests/Mockery/MockingNullableMethodsTest.php
@@ -23,6 +23,7 @@ namespace test\Mockery;
 
 use Mockery\Adapter\Phpunit\MockeryTestCase;
 use Mockery\Generator\Method;
+use PHPUnit\Framework\Attributes\RequiresPhpunit;
 use test\Mockery\Fixtures\MethodWithNullableReturnType;
 
 class MockingNullableMethodsTest extends MockeryTestCase
@@ -80,6 +81,7 @@ class MockingNullableMethodsTest extends MockeryTestCase
     /**
      * @test
      */
+    #[RequiresPhpunit('< 11')]
     public function itShouldAllowSelfToBeSet()
     {
         $mock = mock("test\Mockery\Fixtures\MethodWithNullableReturnType");
@@ -105,6 +107,7 @@ class MockingNullableMethodsTest extends MockeryTestCase
     /**
      * @test
      */
+    #[RequiresPhpunit('< 11')]
     public function itShouldAllowNullableSelfToBeSet()
     {
         $mock = mock("test\Mockery\Fixtures\MethodWithNullableReturnType");
@@ -127,6 +130,7 @@ class MockingNullableMethodsTest extends MockeryTestCase
     /**
      * @test
      */
+    #[RequiresPhpunit('< 11')]
     public function itShouldAllowClassToBeSet()
     {
         $mock = mock("test\Mockery\Fixtures\MethodWithNullableReturnType");
@@ -153,6 +157,7 @@ class MockingNullableMethodsTest extends MockeryTestCase
     /**
      * @test
      */
+    #[RequiresPhpunit('< 11')]
     public function itShouldAllowNullalbeClassToBeSet()
     {
         $mock = mock("test\Mockery\Fixtures\MethodWithNullableReturnType");
