diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-04-29 17:22:21 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-04-29 17:22:21 +0200 |
commit | 3a5b65dcebacb3f2a6978723aa99c8c012d022f1 (patch) | |
tree | e73649901cd8cf5d64bd982709c616f23a031f15 /phpunit-rpm.patch | |
parent | 7786edae01da647146dd542939644ea54760681b (diff) |
php-phpunit-PHPUnit: 4.0.18, sources from github
Diffstat (limited to 'phpunit-rpm.patch')
-rw-r--r-- | phpunit-rpm.patch | 32 |
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(); |