summaryrefslogtreecommitdiffstats
path: root/phpunit-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-04-29 17:22:21 +0200
committerRemi Collet <fedora@famillecollet.com>2014-04-29 17:22:21 +0200
commit3a5b65dcebacb3f2a6978723aa99c8c012d022f1 (patch)
treee73649901cd8cf5d64bd982709c616f23a031f15 /phpunit-rpm.patch
parent7786edae01da647146dd542939644ea54760681b (diff)
php-phpunit-PHPUnit: 4.0.18, sources from github
Diffstat (limited to 'phpunit-rpm.patch')
-rw-r--r--phpunit-rpm.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/phpunit-rpm.patch b/phpunit-rpm.patch
new file mode 100644
index 0000000..0a1253b
--- /dev/null
+++ b/phpunit-rpm.patch
@@ -0,0 +1,32 @@
+diff -up ./phpunit.rpm ./phpunit
+--- ./phpunit.rpm 2014-04-29 16:21:26.000000000 +0200
++++ ./phpunit 2014-04-29 16:22:50.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env php
++#!/usr/bin/php
+ <?php
+ /* PHPUnit
+ *
+@@ -35,21 +35,6 @@
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+-foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
+- if (file_exists($file)) {
+- define('PHPUNIT_COMPOSER_INSTALL', $file);
+- break;
+- }
+-}
+-
+-if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
+- die(
+- 'You need to set up the project dependencies using the following commands:' . PHP_EOL .
+- 'wget http://getcomposer.org/composer.phar' . PHP_EOL .
+- 'php composer.phar install' . PHP_EOL
+- );
+-}
+-
+-require PHPUNIT_COMPOSER_INSTALL;
++require 'PHPUnit/Autoload.php';
+
+ PHPUnit_TextUI_Command::main();