File: 0003-nophpunit11-group-for-test-failing-with-PHPUnit-11.patch

package info (click to toggle)
php-doctrine-cache 2.2.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 472 kB
  • sloc: php: 1,450; xml: 93; makefile: 23
file content (60 lines) | stat: -rw-r--r-- 2,055 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sat, 18 May 2024 17:59:24 +0200
Subject: nophpunit11 group for test failing with PHPUnit 11

Bug-Debian: https://bugs.debian.org/1039766
---
 tests/Doctrine/Tests/Common/Cache/CacheProviderTest.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/Doctrine/Tests/Common/Cache/CacheProviderTest.php b/tests/Doctrine/Tests/Common/Cache/CacheProviderTest.php
index d09e130..50c4a37 100644
--- a/tests/Doctrine/Tests/Common/Cache/CacheProviderTest.php
+++ b/tests/Doctrine/Tests/Common/Cache/CacheProviderTest.php
@@ -4,12 +4,14 @@ namespace Doctrine\Tests\Common\Cache;
 
 use Doctrine\Common\Cache\CacheProvider;
 use Doctrine\Tests\DoctrineTestCase;
+use PHPUnit\Framework\Attributes\Group;
 use PHPUnit_Framework_MockObject_MockObject;
 
 use function assert;
 
 class CacheProviderTest extends DoctrineTestCase
 {
+    #[Group('nophpunit11')]
     public function testFetchMultiWillFilterNonRequestedKeys(): void
     {
         $cache = $this->getMockForAbstractClass(
@@ -38,6 +40,7 @@ class CacheProviderTest extends DoctrineTestCase
         );
     }
 
+    #[Group('nophpunit11')]
     public function testFailedDeleteAllDoesNotChangeNamespaceVersion(): void
     {
         $cache = $this->getMockForAbstractClass(
@@ -76,6 +79,7 @@ class CacheProviderTest extends DoctrineTestCase
         $cache->contains('key');
     }
 
+    #[Group('nophpunit11')]
     public function testSaveMultipleNoFail(): void
     {
         $cache = $this->getMockForAbstractClass(
@@ -107,6 +111,7 @@ class CacheProviderTest extends DoctrineTestCase
         ]);
     }
 
+    #[Group('nophpunit11')]
     public function testDeleteMultipleNoFail(): void
     {
         $cache = $this
@@ -130,6 +135,7 @@ class CacheProviderTest extends DoctrineTestCase
         $cache->deleteMultiple(['kerr', 'kok']);
     }
 
+    #[Group('nophpunit11')]
     public function testInvalidNamespaceVersionCacheEntry(): void
     {
         $cache = $this->getMockForAbstractClass(CacheProvider::class);