remi pushed to php-phpunit-PHPUnit (f22). "- Update to 4.6.0 (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 7 05:12:49 UTC 2015


>From 51293935da5f31f93e82391943111141968d15d2 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi at fedoraproject.org>
Date: Fri, 3 Apr 2015 15:11:58 +0200
Subject: - Update to 4.6.0 - raise dependencies on file-iterator 1.4 and diff
 1.2


diff --git a/Autoload.php.in b/Autoload.php.in
index f12fd6e..8247632 100644
--- a/Autoload.php.in
+++ b/Autoload.php.in
@@ -16,6 +16,7 @@ require_once 'SebastianBergmann/Comparator/autoload.php';
 require_once 'SebastianBergmann/GlobalState/autoload.php';
 require_once 'Doctrine/Instantiator/autoload.php';
 require_once 'Prophecy/autoload.php';
+require_once 'PHPUnit/Framework/Assert/Functions.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 1089573..97e3225 100644
--- a/php-phpunit-PHPUnit.spec
+++ b/php-phpunit-PHPUnit.spec
@@ -8,7 +8,7 @@
 #
 # Please, preserve the changelog entries
 #
-%global gh_commit    d6429b0995b24a2d9dfe5587ee3a7071c1161af4
+%global gh_commit    3797497862a4dedcd77c1615106c574ecdb3fad7
 %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.5.1
+Version:        4.6.0
 Release:        1%{?dist}
 Summary:        The PHP Unit Testing framework
 
@@ -54,15 +54,15 @@ BuildRequires:  php-composer(phpunit/php-invoker) >= 1.1.0
 
 # From composer.json
 #        "php": ">=5.3.3",
-#        "phpunit/php-file-iterator": "~1.3.2",
+#        "phpunit/php-file-iterator": "~1.4",
 #        "phpunit/php-text-template": "~1.2",
 #        "phpunit/php-code-coverage": "~2.0>=2.0.11",
-#        "phpunit/php-timer": "~1.0.2",
+#        "phpunit/php-timer": "~1.0",
 #        "phpunit/phpunit-mock-objects": "~2.2",
 #        "phpspec/prophecy": "~1.3,>=1.3.1",
-#        "symfony/yaml": "~2.0",
+#        "symfony/yaml": "~2.1|~3.0",
 #        "sebastian/comparator": "~1.0",
-#        "sebastian/diff": "~1.1",
+#        "sebastian/diff": "~1.2",
 #        "sebastian/environment": "~1.1",
 #        "sebastian/exporter": "~1.1",
 #        "sebastian/recursion-context": "~1.0",
@@ -74,21 +74,21 @@ BuildRequires:  php-composer(phpunit/php-invoker) >= 1.1.0
 #        "ext-reflection": "*",
 #        "ext-spl": "*"
 Requires:       php(language) >= 5.3.3
-Requires:       php-composer(phpunit/php-file-iterator) >= 1.3.2
-Requires:       php-composer(phpunit/php-file-iterator) <  1.4
+Requires:       php-composer(phpunit/php-file-iterator) >= 1.4
+Requires:       php-composer(phpunit/php-file-iterator) <  2
 Requires:       php-composer(phpunit/php-text-template) >= 1.2
 Requires:       php-composer(phpunit/php-text-template) <  2
 Requires:       php-composer(phpunit/php-code-coverage) >= 2.0.11
 Requires:       php-composer(phpunit/php-code-coverage) <  3
-Requires:       php-composer(phpunit/php-timer) >= 1.0.2
-Requires:       php-composer(phpunit/php-timer) <  1.1
+Requires:       php-composer(phpunit/php-timer) >= 1.0
+Requires:       php-composer(phpunit/php-timer) <  2
 Requires:       php-composer(phpunit/phpunit-mock-objects) >= 2.3
 Requires:       php-composer(phpunit/phpunit-mock-objects) <  3
 Requires:       php-composer(phpspec/prophecy) >= 1.3.1
 Requires:       php-composer(phpspec/prophecy) <  2
 Requires:       php-composer(sebastian/comparator) >= 1.1
 Requires:       php-composer(sebastian/comparator) <  2
-Requires:       php-composer(sebastian/diff) >= 1.1
+Requires:       php-composer(sebastian/diff) >= 1.2
 Requires:       php-composer(sebastian/diff) <  2
 Requires:       php-composer(sebastian/environment) >= 1.2
 Requires:       php-composer(sebastian/environment) <  2
@@ -98,8 +98,8 @@ 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
-Requires:       php-composer(symfony/yaml) <  3
+Requires:       php-composer(symfony/yaml) >= 2.1
+Requires:       php-composer(symfony/yaml) <  4
 Requires:       php-dom
 Requires:       php-json
 Requires:       php-pcre
@@ -149,13 +149,16 @@ for the creation, execution and analysis of Unit Tests.
 
 %patch0 -p0 -b .rpm
 
+# Restore PSR-0 tree
+mv src PHPUnit
+
 
 %build
 %{_bindir}/php -d date.timezone=UTC \
 %{_bindir}/phpab \
-  --output   src/Autoload.php \
+  --output   PHPUnit/Autoload.php \
   --template %{SOURCE1} \
-  src
+  PHPUnit
 
 %{_bindir}/php -d date.timezone=UTC \
 %{_bindir}/phpab \
@@ -164,8 +167,8 @@ for the creation, execution and analysis of Unit Tests.
 
 
 %install
-mkdir -p   %{buildroot}%{php_home}
-cp -pr src %{buildroot}%{php_home}/PHPUnit
+mkdir -p       %{buildroot}%{php_home}
+cp -pr PHPUnit %{buildroot}%{php_home}/PHPUnit
 
 install -D -p -m 755 phpunit %{buildroot}%{_bindir}/phpunit
 
@@ -175,12 +178,7 @@ sed -e '/logging/d' \
     -e '/<log/d' \
     phpunit.xml.dist > phpunit.xml
 
-sed -e 's:PHPUnit/Autoload:src/Autoload:' \
-    -i phpunit
-
-./phpunit  \
-  --include-path=%{buildroot}%{php_home} \
-  --testsuite=small
+./phpunit --testsuite=small
 
 
 %post
@@ -200,6 +198,10 @@ fi
 
 
 %changelog
+* Fri Apr  3 2015 Remi Collet <remi at fedoraproject.org> - 4.6.0-1
+- Update to 4.6.0
+- raise dependencies on file-iterator 1.4 and diff 1.2
+
 * Sun Mar 29 2015 Remi Collet <remi at fedoraproject.org> - 4.5.1-1
 - Update to 4.5.1
 
diff --git a/phpunit-rpm.patch b/phpunit-rpm.patch
index b2adcc3..724ad00 100644
--- a/phpunit-rpm.patch
+++ b/phpunit-rpm.patch
@@ -36,14 +36,13 @@ diff -up ./phpunit.rpm ./phpunit
 diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
 --- ./tests/bootstrap.php.rpm	2015-01-17 12:24:41.000000000 +0100
 +++ ./tests/bootstrap.php	2015-01-18 08:51:55.668966689 +0100
-@@ -1,6 +1,9 @@
+@@ -1,6 +1,8 @@
  <?php
  // Needed for isolated tests
 -require __DIR__ . '/../vendor/autoload.php';
-+require __DIR__ . '/../src/Framework/Assert/Functions.php';
-+require __DIR__ . '/_files/CoveredFunction.php';
-+require __DIR__ . '/../src/Autoload.php';
-+require __DIR__ . '/autoload.php';
++require_once __DIR__ . '/_files/CoveredFunction.php';
++require_once __DIR__ . '/../PHPUnit/Autoload.php';
++require_once __DIR__ . '/autoload.php';
  
  ini_set('precision', 14);
  ini_set('serialize_precision', 14);
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/php-phpunit-PHPUnit.git/commit/?h=f22&id=51293935da5f31f93e82391943111141968d15d2


More information about the scm-commits mailing list