File: 0003-Use-mimicked-install-path.patch

package info (click to toggle)
phpunit 12.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 45,880 kB
  • sloc: php: 82,449; xml: 1,908; makefile: 117; sh: 92
file content (40 lines) | stat: -rw-r--r-- 1,677 bytes parent folder | download | duplicates (2)
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
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sun, 25 Feb 2024 13:19:29 +0100
Subject: Use mimicked install path

Forwarded: not-needed
---
 tests/unit/Util/ExcludeListTest.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/unit/Util/ExcludeListTest.php b/tests/unit/Util/ExcludeListTest.php
index 31eff0d..7b63280 100644
--- a/tests/unit/Util/ExcludeListTest.php
+++ b/tests/unit/Util/ExcludeListTest.php
@@ -26,7 +26,7 @@ final class ExcludeListTest extends TestCase
         $excludeList = new ExcludeList(true);
 
         $this->assertContains(
-            realpath(__DIR__ . '/../../../src'),
+            realpath(__DIR__ . '/../../../mimic/share/php/PHPUnit'),
             $excludeList->getExcludedDirectories(),
         );
     }
@@ -35,7 +35,7 @@ final class ExcludeListTest extends TestCase
     {
         $excludeList = new ExcludeList(true);
 
-        $this->assertTrue($excludeList->isExcluded(realpath(__DIR__ . '/../../../src/Framework/TestCase.php')));
+        $this->assertTrue($excludeList->isExcluded(realpath(__DIR__ . '/../../../mimic/share/php/PHPUnit/Framework/TestCase.php')));
         $this->assertFalse($excludeList->isExcluded(__FILE__));
     }
 
@@ -43,7 +43,7 @@ final class ExcludeListTest extends TestCase
     {
         $excludeList = new ExcludeList(false);
 
-        $this->assertFalse($excludeList->isExcluded(realpath(__DIR__ . '/../../../src/Framework/TestCase.php')));
+        $this->assertFalse($excludeList->isExcluded(realpath(__DIR__ . '/../../../mimic/share/php/PHPUnit/Framework/TestCase.php')));
     }
 
     public function testAdditionalDirectoryCanBeExcluded(): void