summaryrefslogtreecommitdiffstats
path: root/phpunit-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-09-14 15:53:55 +0200
committerRemi Collet <fedora@famillecollet.com>2014-09-14 15:53:55 +0200
commit44543ff6ad5f95163ee0dbe24e51f1fbba7464a5 (patch)
tree576da9a44e78f8bcc72eaa670bb094e407a4e7d4 /phpunit-rpm.patch
parente12a4565cf4a18b1c45e35125f9d87daa0ad3d2e (diff)
php-phpunit-PHPUnit: 4.2.6
Diffstat (limited to 'phpunit-rpm.patch')
-rw-r--r--phpunit-rpm.patch12
1 files changed, 7 insertions, 5 deletions
diff --git a/phpunit-rpm.patch b/phpunit-rpm.patch
index 59e7ab9..f953d8d 100644
--- a/phpunit-rpm.patch
+++ b/phpunit-rpm.patch
@@ -1,16 +1,16 @@
diff -up ./phpunit.rpm ./phpunit
---- ./phpunit.rpm 2014-08-08 07:13:30.000000000 +0200
-+++ ./phpunit 2014-08-11 11:12:26.435360930 +0200
+--- ./phpunit.rpm 2014-09-14 11:31:24.000000000 +0200
++++ ./phpunit 2014-09-14 15:48:32.804943481 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/php
<?php
/* PHPUnit
*
-@@ -35,20 +35,7 @@
+@@ -35,22 +35,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-
+
-foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
- if (file_exists($file)) {
- define('PHPUNIT_COMPOSER_INSTALL', $file);
@@ -18,6 +18,8 @@ diff -up ./phpunit.rpm ./phpunit
- }
-}
-
+-unset($file);
+-
-if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
- echo 'You need to set up the project dependencies using the following commands:' . PHP_EOL .
- 'wget http://getcomposer.org/composer.phar' . PHP_EOL .
@@ -27,7 +29,7 @@ diff -up ./phpunit.rpm ./phpunit
-
+define ('PHPUNIT_COMPOSER_INSTALL', stream_resolve_include_path('PHPUnit/Autoload.php'));
require PHPUNIT_COMPOSER_INSTALL;
-
+
PHPUnit_TextUI_Command::main();
diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
--- ./tests/bootstrap.php.rpm 2014-08-17 17:36:46.325953778 +0200