summaryrefslogtreecommitdiffstats
path: root/phpunit-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-05-06 15:46:20 +0200
committerRemi Collet <fedora@famillecollet.com>2014-05-06 15:46:20 +0200
commit4f961dc4594e13c0fc717c3f800847f908f16c4a (patch)
tree5ff542d91c91e4626e31e2f08ef11581001550cf /phpunit-rpm.patch
parentc3d0334feaa9f2bdab2ca44743f1172c906e0a80 (diff)
php-phpunit-PHPUnit: fix autoload
Diffstat (limited to 'phpunit-rpm.patch')
-rw-r--r--phpunit-rpm.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpunit-rpm.patch b/phpunit-rpm.patch
index 0a1253b..34f65ba 100644
--- a/phpunit-rpm.patch
+++ b/phpunit-rpm.patch
@@ -1,13 +1,13 @@
diff -up ./phpunit.rpm ./phpunit
---- ./phpunit.rpm 2014-04-29 16:21:26.000000000 +0200
-+++ ./phpunit 2014-04-29 16:22:50.000000000 +0200
+--- ./phpunit.rpm 2014-05-02 09:13:40.000000000 +0200
++++ ./phpunit 2014-05-06 15:37:05.557950817 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/php
<?php
/* PHPUnit
*
-@@ -35,21 +35,6 @@
+@@ -35,21 +35,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
@@ -26,7 +26,7 @@ diff -up ./phpunit.rpm ./phpunit
- );
-}
-
--require PHPUNIT_COMPOSER_INSTALL;
-+require 'PHPUnit/Autoload.php';
++define ('PHPUNIT_COMPOSER_INSTALL', stream_resolve_include_path('PHPUnit/Autoload.php'));
+ require PHPUNIT_COMPOSER_INSTALL;
PHPUnit_TextUI_Command::main();