File: Adjust-relative-test-dir.patch

package info (click to toggle)
phing 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,560 kB
  • sloc: php: 59,817; xml: 9,767; sql: 78; makefile: 39; sh: 14
file content (23 lines) | stat: -rw-r--r-- 1,034 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
From: William Desportes <williamdes@wdes.fr>
Date: Sun, 13 Apr 2025 15:30:19 +0200
Subject: Adjust relative test dir

Origin: vendor
Forwarded: not-needed
---
 tests/Phing/Test/Type/DirSetTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Phing/Test/Type/DirSetTest.php b/tests/Phing/Test/Type/DirSetTest.php
index 476e205..f0bda65 100644
--- a/tests/Phing/Test/Type/DirSetTest.php
+++ b/tests/Phing/Test/Type/DirSetTest.php
@@ -59,7 +59,7 @@ class DirSetTest extends TestCase
         $this->assertNotNull($expectedDirs, "There were no directories found.");
         $this->assertNotEmpty($expectedDirs, "There were no directories found.");
         foreach ($expectedDirs as $expectedDir) {
-            $absPath = realpath($expectedDir);
+            $absPath = realpath(PHING_TEST_BASE . '/' . $expectedDir);
             $this->assertNotFalse($absPath, "Unable to determine realpath for $expectedDir");
             $this->assertTrue(is_dir($absPath), "$absPath was not a directory.");
         }