From eaf525245c77bb9a5596acddceeebf8e3fd25aba Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 6 May 2014 07:40:14 +0200 Subject: php-horde-Horde-Test: 2.4.0 (with bundled PHPUnit removed) --- Horde_Test-rpm.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Horde_Test-rpm.patch (limited to 'Horde_Test-rpm.patch') 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) { -- cgit