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

package info (click to toggle)
php-doctrine-data-fixtures 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 564 kB
  • sloc: php: 3,148; makefile: 20
file content (21 lines) | stat: -rw-r--r-- 930 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Thu, 13 Feb 2025 08:46:46 +0100
Subject: Compatibility with recent PHPUnit (12)

---
 tests/Common/DataFixtures/ProxyReferenceRepositoryTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Common/DataFixtures/ProxyReferenceRepositoryTest.php b/tests/Common/DataFixtures/ProxyReferenceRepositoryTest.php
index dd5a8f9..161d64d 100644
--- a/tests/Common/DataFixtures/ProxyReferenceRepositoryTest.php
+++ b/tests/Common/DataFixtures/ProxyReferenceRepositoryTest.php
@@ -72,7 +72,7 @@ class ProxyReferenceRepositoryTest extends BaseTestCase
 
         $referenceRepository->expects($this->once())
             ->method('getReferenceNames')
-            ->will($this->returnValue(['admin-role']));
+            ->willReturn(['admin-role']);
 
         $referenceRepository->expects($this->once())
             ->method('setReferenceIdentity')