From 8eb62a02ecd8acb747f015d4cb0a10b42fabb82c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 5 Oct 2015 14:40:26 +0200 Subject: php-phpunit-phpcov: 2.0.2 --- phpcov-rpm.patch | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'phpcov-rpm.patch') diff --git a/phpcov-rpm.patch b/phpcov-rpm.patch index 062caeb..a181e10 100644 --- a/phpcov-rpm.patch +++ b/phpcov-rpm.patch @@ -1,7 +1,7 @@ ---- phpcov.rpm 2014-04-30 15:53:58.000000000 +0200 -+++ phpcov 2014-04-30 15:55:08.000000000 +0200 -@@ -42,23 +42,7 @@ - * @since File available since Release 1.0.0 +--- phpcov.rpm 2015-10-05 14:23:45.648930666 +0200 ++++ phpcov 2015-10-05 14:23:51.362957863 +0200 +@@ -9,23 +9,16 @@ + * file that was distributed with this source code. */ -$loaded = false; @@ -12,8 +12,15 @@ - $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 . -- cgit