summaryrefslogtreecommitdiffstats
path: root/Horde_Test-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Horde_Test-rpm.patch')
-rw-r--r--Horde_Test-rpm.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/Horde_Test-rpm.patch b/Horde_Test-rpm.patch
new file mode 100644
index 0000000..543de27
--- /dev/null
+++ b/Horde_Test-rpm.patch
@@ -0,0 +1,32 @@
+diff -up Horde_Test-2.4.0/lib/Horde/Test/AllTests.php.rpm Horde_Test-2.4.0/lib/Horde/Test/AllTests.php
+--- Horde_Test-2.4.0/lib/Horde/Test/AllTests.php.rpm 2014-05-06 07:24:13.000000000 +0200
++++ Horde_Test-2.4.0/lib/Horde/Test/AllTests.php 2014-05-06 07:24:37.000000000 +0200
+@@ -12,15 +12,7 @@
+ * @link http://www.horde.org/components/Horde_Test
+ */
+
+-if (!@include_once 'PHPUnit/Autoload.php') {
+- /* Try to load PHAR-based phpunit. */
+- set_include_path(get_include_path() . PATH_SEPARATOR . getenv('PATH'));
+- $GLOBALS['_SERVER']['SCRIPT_NAME'] = '-';
+- ob_start();
+- @include_once 'phpunit';
+- ob_end_clean();
+- restore_include_path();
+-}
++require_once 'PHPUnit/Autoload.php';
+
+ /**
+ * Horde base test suite
+diff -up Horde_Test-2.4.0/lib/Horde/Test/Autoload.php.rpm Horde_Test-2.4.0/lib/Horde/Test/Autoload.php
+--- Horde_Test-2.4.0/lib/Horde/Test/Autoload.php.rpm 2014-05-06 07:23:59.000000000 +0200
++++ Horde_Test-2.4.0/lib/Horde/Test/Autoload.php 2014-05-06 07:24:50.000000000 +0200
+@@ -41,7 +41,7 @@ class Horde_Test_Autoload
+ return;
+ }
+
+- require __DIR__ . '/../../../bundle/vendor/autoload.php';
++ require_once 'PHPUnit/Autoload.php';
+
+ spl_autoload_register(
+ function($class) {