[php-phpunit-PHPUnit] Update to 4.4.0

Remi Collet remi at fedoraproject.org
Mon Dec 8 18:32:06 UTC 2014


commit 62ae4d542411497fc495caa3260b2065ba96acf5
Author: Remi Collet <remi at fedoraproject.org>
Date:   Mon Dec 8 19:32:12 2014 +0100

    Update to 4.4.0

 .gitignore               |    1 +
 Autoload.php.in          |    1 +
 php-phpunit-PHPUnit.spec |   19 +++++++++--------
 phpunit-colors.patch     |   47 ----------------------------------------------
 phpunit-rpm.patch        |   28 +++++++++++++-------------
 sources                  |    2 +-
 6 files changed, 27 insertions(+), 71 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1681a5e..dcb20c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,3 +46,4 @@ clog
 /phpunit-4.3.3.tar.gz
 /phpunit-4.3.4.tar.gz
 /phpunit-4.3.5.tar.gz
+/phpunit-4.4.0.tar.gz
diff --git a/Autoload.php.in b/Autoload.php.in
index c95ad17..6c8355a 100644
--- a/Autoload.php.in
+++ b/Autoload.php.in
@@ -13,6 +13,7 @@ require_once 'SebastianBergmann/Environment/autoload.php';
 require_once 'SebastianBergmann/Exporter/autoload.php';
 require_once 'SebastianBergmann/Version/autoload.php';
 require_once 'SebastianBergmann/Comparator/autoload.php';
+require_once 'SebastianBergmann/GlobalState/autoload.php';
 
 $vendorDir = '/usr/share/php';
 require_once $vendorDir . '/Symfony/Component/ClassLoader/UniversalClassLoader.php';
diff --git a/php-phpunit-PHPUnit.spec b/php-phpunit-PHPUnit.spec
index 1386dbc..aeebf25 100644
--- a/php-phpunit-PHPUnit.spec
+++ b/php-phpunit-PHPUnit.spec
@@ -8,7 +8,7 @@
 #
 # Please, preserve the changelog entries
 #
-%global gh_commit    2dab9d593997db4abcf58d0daf798eb4e9cecfe1
+%global gh_commit    bbe7bcb83b6ec1a9eaabbe1b70d4795027c53ee0
 %global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
 %global gh_owner     sebastianbergmann
 %global gh_project   phpunit
@@ -17,7 +17,7 @@
 %global pear_channel pear.phpunit.de
 
 Name:           php-phpunit-PHPUnit
-Version:        4.3.5
+Version:        4.4.0
 Release:        1%{?dist}
 Summary:        The PHP Unit Testing framework
 
@@ -31,8 +31,6 @@ Source1:        Autoload.php.in
 
 # Fix command for autoload
 Patch0:         %{gh_project}-rpm.patch
-# https://github.com/sebastianbergmann/phpunit/pull/1458
-Patch1:         %{gh_project}-colors.patch
 
 BuildArch:      noarch
 BuildRequires:  php(language) >= 5.3.3
@@ -46,6 +44,7 @@ BuildRequires:  php-composer(sebastian/comparator) >= 1.0
 BuildRequires:  php-composer(sebastian/diff) >= 1.1
 BuildRequires:  php-composer(sebastian/environment) >= 1.1
 BuildRequires:  php-composer(sebastian/exporter) >= 1.0
+BuildRequires:  php-composer(sebastian/global-state) >= 1.0
 BuildRequires:  php-composer(sebastian/version) >= 1.0
 BuildRequires:  php-composer(symfony/yaml) >= 2.0
 BuildRequires:  php-composer(symfony/class-loader) >= 2.0
@@ -63,6 +62,7 @@ BuildRequires:  php-composer(phpunit/php-invoker) >= 1.1.0
 #        "sebastian/diff": "~1.1",
 #        "sebastian/environment": "~1.1",
 #        "sebastian/exporter": "~1.0",
+#        "sebastian/global-state": "~1.0",
 #        "sebastian/version": "~1.0",
 #        "ext-dom": "*",
 #        "ext-json": "*",
@@ -88,6 +88,8 @@ Requires:       php-composer(sebastian/environment) >= 1.1
 Requires:       php-composer(sebastian/environment) <  2
 Requires:       php-composer(sebastian/exporter) >= 1.0
 Requires:       php-composer(sebastian/exporter) <  2
+Requires:       php-composer(sebastian/global-state) >= 1.0
+Requires:       php-composer(sebastian/global-state) <  2
 Requires:       php-composer(sebastian/version) >= 1.0
 Requires:       php-composer(sebastian/version) <  2
 Requires:       php-composer(symfony/yaml) >= 2.0
@@ -139,11 +141,6 @@ for the creation, execution and analysis of Unit Tests.
 %setup -q -n %{gh_project}-%{gh_commit}
 
 %patch0 -p0 -b .rpm
-%patch1 -p1
-
-# https://github.com/sebastianbergmann/phpunit/pull/1481
-chmod -x src/Util/Blacklist.php \
-         src/Framework/TestCase.php
 
 
 %build
@@ -196,6 +193,10 @@ fi
 
 
 %changelog
+* Fri Dec  5 2014 Remi Collet <remi at fedoraproject.org> - 4.4.0-1
+- Update to 4.4.0
+- add dependency on sebastian/global-state
+
 * Tue Nov 11 2014 Remi Collet <remi at fedoraproject.org> - 4.3.5-1
 - Update to 4.3.5
 - define date.timezone in phpunit command to avoid warning
diff --git a/phpunit-rpm.patch b/phpunit-rpm.patch
index a0ec349..ea37f78 100644
--- a/phpunit-rpm.patch
+++ b/phpunit-rpm.patch
@@ -1,41 +1,41 @@
 diff -up ./phpunit.rpm ./phpunit
---- ./phpunit.rpm	2014-10-03 07:17:00.000000000 +0200
-+++ ./phpunit	2014-10-03 11:09:31.304175626 +0200
+--- ./phpunit.rpm	2014-12-05 07:49:03.000000000 +0100
++++ ./phpunit	2014-12-05 09:19:29.774284886 +0100
 @@ -1,4 +1,4 @@
 -#!/usr/bin/env php
 +#!/usr/bin/php
  <?php
  /* PHPUnit
   *
-@@ -35,22 +35,10 @@
-  * POSSIBILITY OF SUCH DAMAGE.
-  */
-
+@@ -39,24 +39,7 @@ if (!ini_get('date.timezone')) {
+      ini_set('date.timezone', 'UTC');
+ }
+ 
 -foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
 -    if (file_exists($file)) {
 -        define('PHPUNIT_COMPOSER_INSTALL', $file);
 -        break;
 -    }
-+if (!ini_get('date.timezone')) {
-+     ini_set('date.timezone', 'UTC');
- }
+-}
 -
 -unset($file);
 -
 -if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
--    echo 'You need to set up the project dependencies using the following commands:' . PHP_EOL .
+-    fwrite(STDERR,
+-        '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;
+-        'php composer.phar install' . PHP_EOL
+-    );
 -    die(1);
 -}
 -
 +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
-+++ ./tests/bootstrap.php	2014-08-17 17:37:54.634043416 +0200
+--- ./tests/bootstrap.php.rpm	2014-12-05 07:49:03.000000000 +0100
++++ ./tests/bootstrap.php	2014-12-05 09:18:19.614014475 +0100
 @@ -1,5 +1,8 @@
  <?php
 -require __DIR__ . '/../vendor/autoload.php';
diff --git a/sources b/sources
index cc76b73..401b802 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b172944dbca00a4d5d12dee847585e93  phpunit-4.3.5.tar.gz
+044549cfa31bcd17e423d2973a97c5fe  phpunit-4.4.0.tar.gz


More information about the scm-commits mailing list