summaryrefslogtreecommitdiffstats
path: root/phpcov-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'phpcov-rpm.patch')
-rw-r--r--phpcov-rpm.patch23
1 files changed, 8 insertions, 15 deletions
diff --git a/phpcov-rpm.patch b/phpcov-rpm.patch
index a181e10..d8cc948 100644
--- a/phpcov-rpm.patch
+++ b/phpcov-rpm.patch
@@ -1,6 +1,7 @@
---- phpcov.rpm 2015-10-05 14:23:45.648930666 +0200
-+++ phpcov 2015-10-05 14:23:51.362957863 +0200
-@@ -9,23 +9,16 @@
+diff -up ./phpcov.rpm ./phpcov
+--- ./phpcov.rpm 2020-08-12 08:34:40.537300187 +0200
++++ ./phpcov 2020-08-12 08:35:58.538282816 +0200
+@@ -9,22 +9,6 @@
* file that was distributed with this source code.
*/
@@ -12,15 +13,8 @@
- $loaded = true;
- break;
- }
-+// Ensure correct include_path for RHSCL
-+$inc = get_include_path();
-+$dirs = explode(':', $inc);
-+if (!in_array('/usr/share/php', $dirs)) {
-+ $dirs[] = '/usr/share/php';
-+ set_include_path(implode(':', $dirs));
- }
-+unset ($inc, $dirs);
-
+-}
+-
-if (!$loaded) {
- die(
- 'You need to set up the project dependencies using the following commands:' . PHP_EOL .
@@ -28,7 +22,6 @@
- 'php composer.phar install' . PHP_EOL
- );
-}
-+require 'SebastianBergmann/PHPCOV/autoload.php';
++require '/usr/share/php/SebastianBergmann/PHPCOV/autoload.php';
- $application = new SebastianBergmann\PHPCOV\Application;
- $application->run();
+ exit((new SebastianBergmann\PHPCOV\Application)->run($_SERVER['argv']));