File: 0002-Compatibility-with-recent-PHPUnit-12.patch

package info (click to toggle)
php-composer-class-map-generator 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,672 kB
  • sloc: php: 4,271; makefile: 20
file content (28 lines) | stat: -rw-r--r-- 1,006 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Wed, 12 Feb 2025 07:50:00 +0100
Subject: Compatibility with recent PHPUnit (12)

---
 tests/ClassMapGeneratorTest.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/ClassMapGeneratorTest.php b/tests/ClassMapGeneratorTest.php
index 4d75d4b..d8e8765 100644
--- a/tests/ClassMapGeneratorTest.php
+++ b/tests/ClassMapGeneratorTest.php
@@ -19,6 +19,7 @@
 namespace Composer\ClassMapGenerator;
 
 use PHPUnit\Framework\TestCase;
+use PHPUnit\Framework\Attributes\DataProvider;
 use Symfony\Component\Finder\Finder;
 use Symfony\Component\Filesystem\Filesystem;
 
@@ -48,6 +49,7 @@ class ClassMapGeneratorTest extends TestCase
      * @param string $directory
      * @param array<string, string> $expected
      */
+    #[DataProvider('getTestCreateMapTests')]
     public function testCreateMap(string $directory, array $expected): void
     {
         self::assertEqualsNormalized($expected, ClassMapGenerator::createMap($directory));