File: 0001-Use-system-path-for-tests.patch

package info (click to toggle)
php-codecoverage 11.0.9%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 32,092 kB
  • sloc: php: 12,298; javascript: 10,135; xml: 1,203; makefile: 24
file content (21 lines) | stat: -rw-r--r-- 886 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sun, 3 Mar 2024 09:16:18 +0100
Subject: Use system path for tests

---
 tests/tests/Report/Html/CustomCssFileTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/tests/Report/Html/CustomCssFileTest.php b/tests/tests/Report/Html/CustomCssFileTest.php
index e2df312..7e72648 100644
--- a/tests/tests/Report/Html/CustomCssFileTest.php
+++ b/tests/tests/Report/Html/CustomCssFileTest.php
@@ -24,7 +24,7 @@ final class CustomCssFileTest extends TestCase
         $file = CustomCssFile::default();
 
         $this->assertSame(
-            realpath(__DIR__ . '/../../../../src/Report/Html/Renderer/Template/css/custom.css'),
+            realpath('/usr/share/php/SebastianBergmann/CodeCoverage/Report/Html/Renderer/Template/css/custom.css'),
             realpath($file->path()),
         );
     }