File: 0011-Patch-the-path-to-phpunit.patch

package info (click to toggle)
matomo 5.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 72,652 kB
  • sloc: php: 230,070; javascript: 103,748; python: 196; xml: 188; sh: 156; makefile: 13; sql: 10
file content (25 lines) | stat: -rw-r--r-- 991 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
From: William Desportes <williamdes@wdes.fr>
Date: Sun, 15 Dec 2024 22:54:28 +0100
Subject: Patch the path to phpunit

Do not use PIWIK_VENDOR_PATH

Origin: vendor
Forwarded: not-needed
---
 plugins/TestRunner/Commands/TestsRun.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/TestRunner/Commands/TestsRun.php b/plugins/TestRunner/Commands/TestsRun.php
index 36e04aa..6351a17 100644
--- a/plugins/TestRunner/Commands/TestsRun.php
+++ b/plugins/TestRunner/Commands/TestsRun.php
@@ -53,7 +53,7 @@ class TestsRun extends ConsoleCommand
         $groups = $this->getGroupsFromString($groups);
 
         // bin is the composer executeable directory, where all vendors (should) place their executables
-        $command = PIWIK_VENDOR_PATH . '/bin/phpunit';
+        $command = '/usr/bin/phpunit';
 
         if (!$this->isCoverageEnabled($options) && $this->isXdebugLoaded()) {
             $message = 'Did you know? You can run tests faster by disabling xdebug';