From a7b4163aa155967de7b372d55af42e2995ed2b15 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 Aug 2016 21:34:18 +0200 Subject: php-phpunit-PHPUnit: 5.5.4 --- Autoload.php.in | 64 ---- composer-dev.json | 79 ---- composer.json | 20 +- php-phpunit-PHPUnit-dev.spec | 889 ------------------------------------------- php-phpunit-PHPUnit.spec | 239 +++++++++--- phpunit-atleast.patch | 56 --- 6 files changed, 191 insertions(+), 1156 deletions(-) delete mode 100644 Autoload.php.in delete mode 100644 composer-dev.json delete mode 100644 php-phpunit-PHPUnit-dev.spec delete mode 100644 phpunit-atleast.patch diff --git a/Autoload.php.in b/Autoload.php.in deleted file mode 100644 index 1e87d2e..0000000 --- a/Autoload.php.in +++ /dev/null @@ -1,64 +0,0 @@ -register(); -} - -/* for symfony/yaml */ -$fedoraClassLoader->addPrefix('Symfony\\Component\\', $vendorDir); - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - - if ($classes === NULL) { - $classes = array( - ___CLASSLIST___ - ); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require __DIR__ . $classes[$cn]; - } - } -); - -/* Optional */ -foreach(array( - 'PHPUnit/Extensions/Database/Autoload.php', - 'PHPUnit/Extensions/SeleniumCommon/Autoload.php', - 'PHPUnit/Extensions/SeleniumTestCase/Autoload.php', - 'PHPUnit/Extensions/Story/Autoload.php' - ) as $opt) { - if ($fic = stream_resolve_include_path($opt)) { - require_once $fic; - } -} diff --git a/composer-dev.json b/composer-dev.json deleted file mode 100644 index 62e5cea..0000000 --- a/composer-dev.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "name": "phpunit/phpunit", - "description": "The PHP Unit Testing framework.", - "type": "library", - "keywords": [ - "phpunit", - "xunit", - "testing" - ], - "homepage": "https://phpunit.de/", - "license": "BSD-3-Clause", - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues" - }, - "require": { - "php": "^5.6 || ^7.0", - "phpunit/php-file-iterator": "~1.4", - "phpunit/php-text-template": "~1.2", - "phpunit/php-code-coverage": "^4.0.1", - "phpunit/php-timer": "^1.0.6", - "phpunit/phpunit-mock-objects": "^3.2", - "phpspec/prophecy": "^1.3.1", - "symfony/yaml": "~2.1|~3.0", - "sebastian/comparator": "~1.1", - "sebastian/diff": "~1.2", - "sebastian/environment": "^1.3 || ^2.0", - "sebastian/exporter": "~1.2", - "sebastian/global-state": "~1.0", - "sebastian/object-enumerator": "~1.0", - "sebastian/resource-operations": "~1.0", - "sebastian/version": "~1.0|~2.0", - "myclabs/deep-copy": "~1.3", - "ext-dom": "*", - "ext-json": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*" - }, - "conflict": { - "phpdocumentor/reflection-docblock": "3.0.2" - }, - "config": { - "platform": { - "php": "5.6.0" - } - }, - "suggest": { - "phpunit/php-invoker": "~1.1" - }, - "bin": [ - "phpunit" - ], - "autoload": { - "classmap": [ - "src/" - ] - }, - "autoload-dev": { - "classmap": [ - "tests/" - ], - "files": [ - "src/Framework/Assert/Functions.php", - "tests/_files/CoveredFunction.php" - ] - }, - "extra": { - "branch-alias": { - "dev-master": "5.5.x-dev" - } - } -} diff --git a/composer.json b/composer.json index b0535de..62e5cea 100644 --- a/composer.json +++ b/composer.json @@ -20,29 +20,35 @@ "issues": "https://github.com/sebastianbergmann/phpunit/issues" }, "require": { - "php": ">=5.3.3", + "php": "^5.6 || ^7.0", "phpunit/php-file-iterator": "~1.4", "phpunit/php-text-template": "~1.2", - "phpunit/php-code-coverage": "~2.1", + "phpunit/php-code-coverage": "^4.0.1", "phpunit/php-timer": "^1.0.6", - "phpunit/phpunit-mock-objects": "~2.3", + "phpunit/phpunit-mock-objects": "^3.2", "phpspec/prophecy": "^1.3.1", "symfony/yaml": "~2.1|~3.0", "sebastian/comparator": "~1.1", "sebastian/diff": "~1.2", - "sebastian/environment": "~1.3", + "sebastian/environment": "^1.3 || ^2.0", "sebastian/exporter": "~1.2", "sebastian/global-state": "~1.0", - "sebastian/version": "~1.0", + "sebastian/object-enumerator": "~1.0", + "sebastian/resource-operations": "~1.0", + "sebastian/version": "~1.0|~2.0", + "myclabs/deep-copy": "~1.3", "ext-dom": "*", "ext-json": "*", "ext-pcre": "*", "ext-reflection": "*", "ext-spl": "*" }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2" + }, "config": { "platform": { - "php": "5.3.3" + "php": "5.6.0" } }, "suggest": { @@ -67,7 +73,7 @@ }, "extra": { "branch-alias": { - "dev-master": "4.8.x-dev" + "dev-master": "5.5.x-dev" } } } diff --git a/php-phpunit-PHPUnit-dev.spec b/php-phpunit-PHPUnit-dev.spec deleted file mode 100644 index 35eb359..0000000 --- a/php-phpunit-PHPUnit-dev.spec +++ /dev/null @@ -1,889 +0,0 @@ -# remirepo/fedora spec file for php-phpunit-PHPUnit -# -# Copyright (c) 2010-2016 Remi Collet -# Copyright (c) 2006-2009 Christopher Stone -# -# License: MIT -# http://opensource.org/licenses/MIT -# -# Please, preserve the changelog entries -# -%global gh_commit c7b3e1dcc1d183f26d5ba282881fe65c2cbb5b2b -#global gh_date 20150927 -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_owner sebastianbergmann -%global gh_project phpunit -%global php_home %{_datadir}/php -%global pear_name PHPUnit -%global pear_channel pear.phpunit.de -%global major 5.5 -%global minor 0 -%global specrel 1 - -Name: php-phpunit-PHPUnit -Version: %{major}.%{minor} -Release: %{?gh_date:0.%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} -Summary: The PHP Unit Testing framework - -Group: Development/Libraries -License: BSD -URL: https://github.com/%{gh_owner}/%{gh_project} -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz - -# Autoload template, from version 3.7 -Source1: %{gh_project}-5.4.0-Autoload.php.in - -# Fix command for autoload -Patch0: %{gh_project}-rpm.patch - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildArch: noarch -BuildRequires: php(language) >= 5.6 -BuildRequires: %{_bindir}/phpab -BuildRequires: php-composer(phpunit/php-file-iterator) >= 1.4 -BuildRequires: php-composer(phpunit/php-text-template) >= 1.2 -BuildRequires: php-composer(phpunit/php-code-coverage) >= 4.0 -BuildRequires: php-composer(phpunit/php-timer) >= 1.0.6 -BuildRequires: php-composer(phpunit/phpunit-mock-objects) >= 3.2 -BuildRequires: php-composer(phpspec/prophecy) >= 1.3.1 -BuildRequires: php-composer(sebastian/comparator) >= 1.1 -BuildRequires: php-composer(sebastian/diff) >= 1.2 -BuildRequires: php-composer(sebastian/environment) >= 1.3 -BuildRequires: php-composer(sebastian/exporter) >= 1.2 -BuildRequires: php-composer(sebastian/recursion-context) >= 1.0 -BuildRequires: php-composer(sebastian/global-state) >= 1.0 -BuildRequires: php-composer(sebastian/object-enumerator) >= 1.0 -BuildRequires: php-composer(sebastian/resource-operations) >= 1.0 -BuildRequires: php-composer(sebastian/version) >= 1.0 -BuildRequires: php-composer(myclabs/deep-copy) >= 1.3 -BuildRequires: php-composer(symfony/yaml) >= 2.1 -BuildRequires: php-composer(symfony/class-loader) >= 2.0 -BuildRequires: php-composer(phpunit/php-invoker) >= 1.1.0 - -# From composer.json -# "php": "^5.6 || ^7.0", -# "phpunit/php-file-iterator": "~1.4", -# "phpunit/php-text-template": "~1.2", -# "phpunit/php-code-coverage": "^4.0.1", -# "phpunit/php-timer": "^1.0.6", -# "phpunit/phpunit-mock-objects": "^3.2", -# "phpspec/prophecy": "^1.3.1", -# "symfony/yaml": "~2.1|~3.0", -# "sebastian/comparator": "~1.0", -# "sebastian/diff": "~1.2", -# "sebastian/environment": "^1.3 || ^2.0", -# "sebastian/exporter": "~1.1", -# "sebastian/recursion-context": "~1.0", -# "sebastian/global-state": "~1.0", -# "sebastian/object-enumerator": "~1.0", -# "sebastian/resource-operations": "~1.0", -# "sebastian/version": "~1.0|~2.0", -# "myclabs/deep-copy": "~1.3", -# "ext-dom": "*", -# "ext-json": "*", -# "ext-pcre": "*", -# "ext-reflection": "*", -# "ext-spl": "*" -Requires: php(language) >= 5.6 -Requires: php-cli -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) >= 4.0.1 -Requires: php-composer(phpunit/php-code-coverage) < 5 -Requires: php-composer(phpunit/php-timer) >= 1.0.6 -Requires: php-composer(phpunit/php-timer) < 2 -Requires: php-composer(phpunit/phpunit-mock-objects) >= 3.2 -Requires: php-composer(phpunit/phpunit-mock-objects) < 4 -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.2 -Requires: php-composer(sebastian/diff) < 2 -Requires: php-composer(sebastian/environment) >= 1.3 -Requires: php-composer(sebastian/environment) < 3 -Requires: php-composer(sebastian/exporter) >= 1.2 -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/object-enumerator) >= 1.0 -Requires: php-composer(sebastian/object-enumerator) < 2 -Requires: php-composer(sebastian/resource-operations) >= 1.0 -Requires: php-composer(sebastian/resource-operations) < 2 -Requires: php-composer(sebastian/version) >= 1.0 -Requires: php-composer(sebastian/version) < 3 -Requires: php-composer(myclabs/deep-copy) >= 1.3 -Requires: php-composer(myclabs/deep-copy) < 2 -Requires: php-composer(symfony/yaml) >= 2.1 -Requires: php-composer(symfony/yaml) < 4 -Requires: php-dom -Requires: php-json -Requires: php-pcre -Requires: php-reflection -Requires: php-spl -# Optional -# "phpunit/php-invoker": "~1.1" -Requires: php-composer(phpunit/php-invoker) >= 1.1 -Requires: php-composer(phpunit/php-invoker) < 2 -# For our autoload patch -Requires: php-composer(doctrine/instantiator) >= 1.0.4 -Requires: php-composer(doctrine/instantiator) < 2 -Requires: php-composer(symfony/class-loader) >= 2.0 -Requires: php-composer(symfony/class-loader) < 3 -Requires: php-composer(sebastian/recursion-context) >= 1.0 -# From phpcompatinfo report for version 5.4.0 -Requires: php-libxml -Requires: php-mbstring -Requires: php-openssl -Requires: php-pcntl -Requires: php-phar -Requires: php-tidy -Requires: php-xml - - -Provides: php-composer(phpunit/phpunit) = %{version} -# For compatibility with PEAR mode -Provides: php-pear(%{pear_channel}/%{pear_name}) = %{version} -# Package have been rename -Obsoletes: php-pear-PHPUnit < 4 -Provides: php-pear-PHPUnit = %{version}-%{release} -# Project -Provides: phpunit = %{version}-%{release} - - -%description -PHPUnit is a family of PEAR packages that supports the development of -object-oriented PHP applications using the concepts and methods of Agile -Software Development, Extreme Programming, Test-Driven Development and -Design-by-Contract Development by providing an elegant and robust framework -for the creation, execution and analysis of Unit Tests. - - -%prep -%setup -q -n %{gh_project}-%{gh_commit} - -%patch0 -p0 -b .rpm - -# Restore PSR-0 tree -mv src PHPUnit - - -%build -%{_bindir}/phpab \ - --output PHPUnit/Autoload.php \ - --template %{SOURCE1} \ - PHPUnit - -%{_bindir}/phpab \ - --output tests/autoload.php \ - --exclude '*/BankAccountTest2.php' \ - tests - - -%install -rm -rf %{buildroot} -mkdir -p %{buildroot}%{php_home} -cp -pr PHPUnit %{buildroot}%{php_home}/PHPUnit - -install -D -p -m 755 phpunit %{buildroot}%{_bindir}/phpunit - - -%check -# remirepo:11 -run=0 -ret=0 -if which php56; then - php56 ./phpunit --testsuite=small --no-coverage - run=1 -fi -if which php71; then - php71 ./phpunit --testsuite=small --no-coverage - run=1 -fi -if [ $run -eq 0 ]; then -./phpunit --testsuite=small --no-coverage --verbose -# remirepo:2 -fi -exit $ret - - -%clean -rm -rf %{buildroot} - - -%post -if [ -x %{_bindir}/pear ]; then - %{_bindir}/pear uninstall --nodeps --ignore-errors --register-only \ - %{pear_channel}/%{pear_name} >/dev/null || : -fi - - -%files -%defattr(-,root,root,-) -%doc CONTRIBUTING.md README.md composer.json ChangeLog-%{major}.md -%{!?_licensedir:%global license %%doc} -%license LICENSE - -%{_bindir}/phpunit -%{php_home}/PHPUnit - - -%changelog -* Fri Aug 5 2016 Remi Collet - 5.5.0-1 -- Update to 5.5.0 - -* Tue Jul 26 2016 Remi Collet - 5.4.8-1 -- Update to 5.4.8 (no change) -- raise dependency on phpunit/php-code-coverage >= 4.0.1 - -* Thu Jul 21 2016 Remi Collet - 5.4.7-1 -- Update to 5.4.7 - -* Thu Jun 16 2016 Remi Collet - 5.4.6-1 -- Update to 5.4.6 (no change) - -* Wed Jun 15 2016 Remi Collet - 5.4.5-1 -- Update to 5.4.5 - -* Thu Jun 9 2016 Remi Collet - 5.4.4-1 -- Update to 5.4.4 - -* Fri Jun 3 2016 Remi Collet - 5.4.2-1 -- Update to 5.4.2 - -* Fri Jun 3 2016 Remi Collet - 5.4.0-1 -- Update to 5.4.0 -- raise dependency on phpunit/php-code-coverage >= 4.0 -- raise dependency on phpunit/phpunit-mock-objects >= 3.2 - -* Wed May 11 2016 Remi Collet - 5.3.4-1 -- Update to 5.3.4 - -* Wed Apr 13 2016 Remi Collet - 5.3.2-1 -- Update to 5.3.2 - -* Thu Apr 7 2016 Remi Collet - 5.3.1-1 -- Update to 5.3.1 - -* Fri Apr 1 2016 Remi Collet - 5.3.0-1 -- Update to 5.3.0 -- add dependency on sebastian/object-enumerator -- raise dependency on phpunit/phpunit-mock-objects >= 3.1 - -* Tue Mar 15 2016 Remi Collet - 5.2.12-1 -- Update to 5.2.12 - -* Mon Mar 14 2016 Remi Collet - 5.2.11-1 -- Update to 5.2.11 - -* Thu Mar 3 2016 Remi Collet - 5.2.10-1 -- Update to 5.2.10 -- raise dependency on phpunit/php-code-coverage >= 3.3.0 - -* Fri Feb 19 2016 Remi Collet - 5.2.9-1 -- Update to 5.2.9 - -* Thu Feb 18 2016 Remi Collet - 5.2.8-1 -- Update to 5.2.8 -- raise dependency on phpunit/php-code-coverage >= 3.2.1 - -* Tue Feb 16 2016 Remi Collet - 5.2.6-1 -- Update to 5.2.6 - -* Sat Feb 13 2016 Remi Collet - 5.2.5-1 -- Update to 5.2.5 -- raise dependency on phpunit/php-code-coverage >= 3.2 - -* Thu Feb 11 2016 Remi Collet - 5.2.4-1 -- Update to 5.2.4 -- lower dependency on phpunit/php-code-coverage >= 3.0 - -* Sun Feb 7 2016 Remi Collet - 5.2.2-1 -- Update to 5.2.2 - -* Fri Feb 5 2016 Remi Collet - 5.2.1-1 -- Update to 5.2.1 - -* Fri Feb 5 2016 Remi Collet - 5.2.0-1 -- Update to 5.2.0 -- raise dependency on phpunit/php-code-coverage >= 3.1 - -* Tue Feb 2 2016 Remi Collet - 5.1.7-1 -- Update to 5.1.7 - -* Fri Jan 29 2016 Remi Collet - 5.1.6-1 -- Update to 5.1.6 - -* Fri Jan 29 2016 Remi Collet - 5.1.5-1 -- Update to 5.1.5 - -* Mon Jan 11 2016 Remi Collet - 5.1.4-1 -- Update to 5.1.4 - -* Thu Dec 10 2015 Remi Collet - 5.1.3-1 -- Update to 5.1.3 -- obsolete php-phpunit-PHPUnit-Selenium - -* Mon Dec 7 2015 Remi Collet - 5.1.2-1 -- Update to 5.1.2 - -* Thu Dec 3 2015 Remi Collet - 5.1.0-1 -- Update to 5.1.0 - -* Mon Nov 30 2015 Remi Collet - 5.0.10-1 -- Update to 5.0.10 -- run test suite with both PHP 5 and 7 when available - -* Wed Nov 11 2015 Remi Collet - 5.0.9-1 -- Update to 5.0.9 - -* Fri Oct 23 2015 Remi Collet - 5.0.8-1 -- Update to 5.0.8 (no change) - -* Thu Oct 22 2015 Remi Collet - 5.0.7-1 -- Update to 5.0.7 - -* Wed Oct 14 2015 Remi Collet - 5.0.6-1 -- Update to 5.0.6 - -* Mon Oct 12 2015 Remi Collet - 5.0.5-1 -- Update to 5.0.5 - -* Wed Oct 7 2015 Remi Collet - 5.0.4-1 -- Update to 5.0.4 - -* Fri Oct 2 2015 Remi Collet - 5.0.3-1 -- Update to 5.0.3 (no change) - -* Fri Oct 2 2015 Remi Collet - 5.0.2-1 -- Update to 5.0.2 - -* Tue Sep 29 2015 Remi Collet - 5.0.0-0.1.20150927gite3b3f36 -- update to 5.0.0-dev -- raise dependency on PHP >= 5.6 -- raise dependency on phpunit/php-code-coverage ~3.0 -- raise dependency on phpunit/phpunit-mock-objects ~3.0 -- add dependency on sebastian/resource-operations ~1.0 -- add dependency on myclabs/deep-copy ~1.3 - -* Sun Sep 27 2015 Remi Collet - 4.8.9-2 -- add --atleast-version command option, backported from 5.0 - -* Mon Sep 21 2015 Remi Collet - 4.8.9-1 -- Update to 4.8.9 - -* Sun Sep 20 2015 Remi Collet - 4.8.8-1 -- Update to 4.8.8 - -* Mon Sep 14 2015 Remi Collet - 4.8.7-1 -- Update to 4.8.7 (no change) - -* Tue Aug 25 2015 Remi Collet - 4.8.6-1 -- Update to 4.8.6 - -* Fri Aug 21 2015 Remi Collet - 4.8.5-1 -- Update to 4.8.5 (no change) - -* Sat Aug 15 2015 Remi Collet - 4.8.4-1 -- Update to 4.8.4 - -* Mon Aug 10 2015 Remi Collet - 4.8.3-1 -- Update to 4.8.3 - -* Fri Aug 7 2015 Remi Collet - 4.8.2-1 -- Update to 4.8.2 - -* Fri Aug 7 2015 Remi Collet - 4.8.1-1 -- Update to 4.8.1 (no change) - -* Fri Aug 7 2015 Remi Collet - 4.8.0-1 -- Update to 4.8.0 -- raise dependency on sebastian/environment 1.3 -- rely on include_path for all dependencies -- add Changelog in documentation - -* Mon Jul 13 2015 Remi Collet - 4.7.7-1 -- Update to 4.7.7 (no change) - -* Tue Jun 30 2015 Remi Collet - 4.7.6-1 -- Update to 4.7.6 - -* Tue Jun 30 2015 Remi Collet - 4.7.5-2 -- use $fedoraClassLoader autoloader - -* Sun Jun 21 2015 Remi Collet - 4.7.5-1 -- Update to 4.7.5 - -* Thu Jun 18 2015 Remi Collet - 4.7.4-1 -- Update to 4.7.4 -- raise dependency on phpunit/php-timer >= 1.0.6 - -* Thu Jun 11 2015 Remi Collet - 4.7.3-1 -- Update to 4.7.3 - -* Sun Jun 7 2015 Remi Collet - 4.7.2-1 -- Update to 4.7.2 - -* Fri Jun 5 2015 Remi Collet - 4.7.1-1 -- Update to 4.7.1 -- raise dependency on phpunit/php-code-coverage ~2.1 -- improve autoloader - -* Wed Jun 3 2015 Remi Collet - 4.6.10-1 -- Update to 4.6.10 - -* Fri May 29 2015 Remi Collet - 4.6.9-1 -- Update to 4.6.9 - -* Thu May 28 2015 Remi Collet - 4.6.8-1 -- Update to 4.6.8 (no change) - -* Tue May 26 2015 Remi Collet - 4.6.7-3 -- ensure compatibility with SCL - -* Tue May 26 2015 Remi Collet - 4.6.7-2 -- detect and redirect to composer installed version #1157910 - -* Mon May 25 2015 Remi Collet - 4.6.7-1 -- Update to 4.6.7 (no change) - -* Thu Apr 30 2015 Remi Collet - 4.6.6-1 -- Update to 4.6.6 - -* Wed Apr 29 2015 Remi Collet - 4.6.5-1 -- Update to 4.6.5 - -* Fri Apr 17 2015 Remi Collet - 4.6.4-2 -- keep upstream shebang with /usr/bin/env (for SCL) - -* Mon Apr 13 2015 Remi Collet - 4.6.4-1 -- Update to 4.6.4 - -* Tue Apr 7 2015 Remi Collet - 4.6.2-1 -- Update to 4.6.2 - -* Fri Apr 3 2015 Remi Collet - 4.6.1-1 -- Update to 4.6.1 - -* Fri Apr 3 2015 Remi Collet - 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 - 4.5.1-1 -- Update to 4.5.1 - -* Fri Feb 13 2015 Remi Collet - 4.5.0-1 -- Update to 4.5.0 -- add dependency on phpspec/prophecy -- raise dependencies on sebastian/comparator >= 1.1, - sebastian/environment >= 1.2, sebastian/exporter >= 1.2 - and doctrine/instantiator >= 1.0.4 (for autoloader file) - -* Tue Jan 27 2015 Remi Collet - 4.4.5-1 -- Update to 4.4.5 (no change) - -* Tue Jan 27 2015 Remi Collet - 4.4.4-2 -- add dependency on sebastian/recursion-context - -* Sun Jan 25 2015 Remi Collet - 4.4.4-1 -- Update to 4.4.4 - -* Sun Jan 18 2015 Remi Collet - 4.4.2-1 -- Update to 4.4.2 - -* Sun Dec 28 2014 Remi Collet - 4.4.1-1 -- Update to 4.4.1 - -* Fri Dec 5 2014 Remi Collet - 4.4.0-1 -- Update to 4.4.0 -- add dependency on sebastian/global-state - -* Tue Nov 11 2014 Remi Collet - 4.3.5-1 -- Update to 4.3.5 -- define date.timezone in phpunit command to avoid warning - -* Sat Oct 25 2014 Remi Collet - 4.3.4-1 -- Update to 4.3.4 -- raise dependency on phpunit/php-file-iterator >= 1.3.2 - -* Fri Oct 17 2014 Remi Collet - 4.3.3-1 -- Update to 4.3.3 - -* Thu Oct 16 2014 Remi Collet - 4.3.2-1 -- Update to 4.3.2 - -* Wed Oct 8 2014 Remi Collet - 4.3.1-2 -- new upstream patch for "no colors" patch -- raise dependency on sebastian/environment >= 1.1 - -* Mon Oct 6 2014 Remi Collet - 4.3.1-1 -- Update to 4.3.1 (no change) - -* Mon Oct 6 2014 Remi Collet - 4.3.0-2 -- only enable colors when output to a terminal (from 4.4) -- open https://github.com/sebastianbergmann/phpunit/pull/1458 - -* Fri Oct 3 2014 Remi Collet - 4.3.0-1 -- Update to 4.3.0 -- drop dependencies on ocramius/instantiator and ocramius/lazy-map -- add dependency on doctrine/instantiator -- raise dependency on phpunit/phpunit-mock-objects >= 2.3 - -* Sun Sep 14 2014 Remi Collet - 4.2.6-1 -- Update to 4.2.6 (no change) - -* Sun Sep 7 2014 Remi Collet - 4.2.5-1 -- Update to 4.2.5 (no change) - -* Sun Aug 31 2014 Remi Collet - 4.2.4-1 -- Update to 4.2.4 - -* Thu Aug 28 2014 Remi Collet - 4.2.3-1 -- Update to 4.2.3 - -* Mon Aug 18 2014 Remi Collet - 4.2.2-1 -- Update to 4.2.2 - -* Sun Aug 17 2014 Remi Collet - 4.2.1-1 -- Update to 4.2.1 - -* Mon Aug 11 2014 Remi Collet - 4.2.0-1 -- Update to 4.2.0 -- raise dependency on phpunit/phpunit-mock-objects >= 2.2 -- add dependency on ocramius/instantiator, ocramius/lazy-map - and symfony/class-loader - -* Fri Jul 18 2014 Remi Collet - 4.1.4-1 -- Update to 4.1.4 -- composer dependencies -- add missing documentation and license - -* Fri Jun 13 2014 Remi Collet - 4.1.3-1 -- Update to 4.1.3 - -* Sat Jun 7 2014 Remi Collet - 4.1.2-1 -- Update to 4.1.2 (no change) -- improve test suite bootstraping -- add composer provide - -* Mon May 26 2014 Remi Collet - 4.1.1-1 -- Update to 4.1.1 - -* Tue May 6 2014 Remi Collet - 4.1.0-2 -- fix some autoload issues - -* Sat May 3 2014 Remi Collet - 4.1.0-1 -- Update to 4.1.0 - -* Wed Apr 30 2014 Remi Collet - 4.0.18-2 -- cleanup pear registry - -* Tue Apr 29 2014 Remi Collet - 4.0.18-1 -- update to 4.0.18 -- sources from github - -* Tue Apr 22 2014 Remi Collet - 3.7.35-2 -- remove message about deprecated PEAR channel - -* Tue Apr 22 2014 Remi Collet - 3.7.35-1 -- Update to 3.7.35 - -* Sun Apr 06 2014 Remi Collet - 3.7.34-1 -- Update to 3.7.34 - -* Tue Feb 25 2014 Remi Collet - 3.7.32-1 -- Update to 3.7.32 (no change) - -* Mon Feb 03 2014 Remi Collet - 3.7.31-1 -- Update to 3.7.31 (no change) - -* Fri Jan 31 2014 Remi Collet - 3.7.30-1 -- Update to 3.7.30 - -* Wed Jan 15 2014 Remi Collet - 3.7.29-1 -- Update to 3.7.29 (stable) - -* Thu Oct 17 2013 Remi Collet - 3.7.28-1 -- Update to 3.7.28 -- add Spec license header -- open https://github.com/sebastianbergmann/phpunit/issues/1029 - -* Mon Sep 16 2013 Remi Collet - 3.7.27-1 -- Update to 3.7.27 (no change) - -* Fri Sep 13 2013 Remi Collet - 3.7.26-1 -- Update to 3.7.26 (no change) - -* Tue Sep 10 2013 Remi Collet - 3.7.25-1 -- Update to 3.7.25 (no change) - -* Tue Aug 20 2013 Remi Collet - 3.7.24-1 -- Update to 3.7.24 - -* Mon Aug 05 2013 Remi Collet - 3.7.23-1 -- Update to 3.7.23 -- raise dependency on phpunit/PHP_Timer 1.0.4 - -* Mon Jul 08 2013 Remi Collet - 3.7.22-1 -- Update to 3.7.22 - -* Fri May 24 2013 Remi Collet - 3.7.21-1 -- Update to 3.7.21 - -* Mon May 13 2013 Remi Collet - 3.7.20-1 -- Update to 3.7.20 - -* Mon Mar 25 2013 Remi Collet - 3.7.19-1 -- Update to 3.7.19 -- requires pear.symfony.com/Yaml >= 2.0.0, <= 2.2.99 - -* Fri Mar 08 2013 Remi Collet - 3.7.18-1 -- Update to 3.7.18 - -* Thu Mar 07 2013 Remi Collet - 3.7.17-1 -- Update to 3.7.17 - -* Wed Mar 06 2013 Remi Collet - 3.7.16-1 -- Update to 3.7.16 - -* Tue Mar 05 2013 Remi Collet - 3.7.15-1 -- Update to 3.7.15 - -* Thu Feb 14 2013 Remi Collet - 3.7.14-1 -- Update to 3.7.14 - -* Sun Jan 13 2013 Remi Collet - 3.7.13-1 -- Version 3.7.13 (stable) - API 3.7.0 (stable) - -* Thu Jan 10 2013 Remi Collet - 3.7.12-1 -- Version 3.7.12 (stable) - API 3.7.0 (stable) - -* Wed Jan 9 2013 Remi Collet - 3.7.11-1 -- Version 3.7.11 (stable) - API 3.7.0 (stable) - -* Sun Dec 2 2012 Remi Collet - 3.7.10-1 -- Version 3.7.10 (stable) - API 3.7.0 (stable) - -* Wed Nov 07 2012 Remi Collet - 3.7.9-1 -- Version 3.7.9 (stable) - API 3.7.0 (stable) - -* Thu Oct 18 2012 Remi Collet - 3.7.8-1 -- Version 3.7.8 (stable) - API 3.7.0 (stable) - -* Thu Oct 11 2012 Remi Collet - 3.7.7-1 -- Version 3.7.7 (stable) - API 3.7.0 (stable) - -* Sun Oct 7 2012 Remi Collet - 3.7.6-1 -- Version 3.7.6 (stable) - API 3.7.0 (stable) - -* Sat Oct 6 2012 Remi Collet - 3.7.5-1 -- Version 3.7.5 (stable) - API 3.7.0 (stable) - -* Sat Oct 6 2012 Remi Collet - 3.7.4-1 -- Version 3.7.4 (stable) - API 3.7.0 (stable) -- add Conflicts for max version of PHP_CodeCoverage and PHPUnit_MockObject - -* Thu Sep 20 2012 Remi Collet - 3.7.1-1 -- Version 3.7.1 (stable) - API 3.7.0 (stable) -- raise dependencies: php 5.3.3, PHP_CodeCoverage 1.2.1, - PHP_Timer 1.0.2, Yaml 2.1.0 (instead of YAML from symfony 1) - -* Sat Aug 04 2012 Remi Collet - 3.6.12-1 -- Version 3.6.12 (stable) - API 3.6.0 (stable) - -* Sat Jul 21 2012 Fedora Release Engineering - 3.6.11-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Thu Jun 07 2012 Remi Collet - 3.6.11-1 -- Version 3.6.11 (stable) - API 3.6.0 (stable) - -* Fri Jan 27 2012 Remi Collet - 3.6.10-1 -- Version 3.6.10 (stable) - API 3.6.0 (stable) -- raise PHP_Invokers >= 1.1.0 - -* Tue Jan 24 2012 Remi Collet - 3.6.9-1 -- Version 3.6.9 (stable) - API 3.6.0 (stable) - -* Sat Jan 21 2012 Remi Collet - 3.6.8-1 -- Version 3.6.8 (stable) - API 3.6.0 (stable) - -* Thu Jan 05 2012 Remi Collet - 3.6.7-1 -- Version 3.6.7 (stable) - API 3.6.0 (stable) - -* Mon Jan 02 2012 Remi Collet - 3.6.6-1 -- Version 3.6.6 (stable) - API 3.6.0 (stable) - -* Mon Dec 19 2011 Remi Collet - 3.6.5-1 -- Version 3.6.5 (stable) - API 3.6.0 (stable) - -* Sat Nov 26 2011 Remi Collet - 3.6.4-1 -- Version 3.6.4 (stable) - API 3.6.0 (stable) - -* Fri Nov 11 2011 Remi Collet - 3.6.3-1 -- Version 3.6.3 (stable) - API 3.6.0 (stable) - -* Fri Nov 04 2011 Remi Collet - 3.6.2-1 -- Version 3.6.2 (stable) - API 3.6.0 (stable) - -* Tue Nov 01 2011 Remi Collet - 3.6.0-1 -- Version 3.6.0 (stable) - API 3.6.0 (stable) - -* Fri Aug 19 2011 Remi Collet - 3.5.15-1 -- Version 3.5.15 (stable) - API 3.5.7 (stable) -- raise PEAR dependency to 1.9.3 - -* Fri Jun 10 2011 Remi Collet - 3.5.14-1 -- Version 3.5.14 (stable) - API 3.5.7 (stable) - -* Tue May 3 2011 Remi Collet - 3.5.13-2 -- rebuild for doc in /usr/share/doc/pear - -* Tue Mar 8 2011 Remi Collet - 3.5.13-1 -- Version 3.5.13 (stable) - API 3.5.7 (stable) -- remove PEAR hack (only needed for EPEL) -- raise PEAR dependency to 1.9.2 -- remove duplicate dependency (YAML) - -* Thu Feb 24 2011 Remi Collet - 3.5.12-1 -- Version 3.5.12 (stable) - API 3.5.7 (stable) - -* Wed Feb 16 2011 Remi Collet - 3.5.11-1 -- Version 3.5.11 (stable) - API 3.5.7 (stable) -- new dependency on php-pear(XML_RPC2) - -* Wed Feb 09 2011 Fedora Release Engineering - 3.5.10-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Thu Jan 20 2011 Remi Collet - 3.5.10-1 -- Version 3.5.10 (stable) - API 3.5.7 (stable) - -* Tue Jan 18 2011 Remi Collet - 3.5.9-1 -- Version 3.5.9 (stable) - API 3.5.7 (stable) - -* Tue Jan 11 2011 Remi Collet - 3.5.7-1 -- Version 3.5.7 (stable) - API 3.5.7 (stable) -- README, CHANGELOG and LICENSE are now in the tarball - -* Mon Dec 20 2010 Remi Collet - 3.5.6-1 -- Version 3.5.6 (stable) - API 3.5.4 (stable) -- move README.mardown to README (was Changelog, now links to doc) -- add CHANGELOG -- not more doc provided by upstream - -* Mon Nov 22 2010 Remi Collet - 3.5.5-1 -- Version 3.5.5 (stable) - API 3.5.4 (stable) - -* Wed Nov 17 2010 Remi Collet - 3.5.4-1 -- Version 3.5.4 (stable) - API 3.5.4 (stable) - -* Wed Oct 27 2010 Remi Collet - 3.5.3-1 -- Update to 3.5.3 -- new requires and new packages for extensions of PHPUnit - PHPUnit_MockObject, PHPUnit_Selenium, DbUnit -- lower PEAR dependency to allow el6 build -- define timezone during build - -* Thu Jul 22 2010 Remi Collet - 3.4.15-1 -- Update to 3.4.15 - -* Sat Jun 19 2010 Remi Collet - 3.4.14-1 -- Update to 3.4.14 - -* Sat May 22 2010 Remi Collet - 3.4.13-1 -- Update to 3.4.13 -- add README.markdown (Changelog) - -* Wed Apr 07 2010 Remi Collet - 3.4.12-1 -- Update to 3.4.12 - -* Thu Feb 18 2010 Remi Collet - 3.4.11-1.1 -- Update to 3.4.11 - -* Wed Feb 10 2010 Remi Collet - 3.4.10-1 -- Update to 3.4.10 - -* Sun Jan 24 2010 Remi Collet - 3.4.9-1 -- Update to 3.4.9 - -* Sat Jan 16 2010 Remi Collet - 3.4.7-1 -- Update to 3.4.7 -- rename from php-pear-PHPUnit to php-phpunit-PHPUnit -- update dependencies (PEAR 1.8.1, YAML, php-soap) - -* Sat Sep 12 2009 Christopher Stone 3.3.17-1 -- Upstream sync - -* Sun Jul 26 2009 Fedora Release Engineering - 3.3.16-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Sat May 02 2009 Remi Collet - 3.3.16-1 -- Upstream sync -- Fix requires (remove hint) and raise PEAR version to 1.7.1 -- rename %%{pear_name}.xml to %%{name}.xml - -* Thu Feb 26 2009 Fedora Release Engineering - 3.3.4-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Sat Nov 8 2008 Christopher Stone 3.3.4-1 -- Upstream sync - -* Thu Oct 23 2008 Christopher Stone 3.3.2-1 -- Upstream sync -- Remove no longer needed Obsolete/Provides - -* Thu Oct 09 2008 Christopher Stone 3.3.1-1 -- Upstream sync - -* Thu Oct 09 2008 Christopher Stone 3.2.21-1 -- Upstream sync -- Add php-xml to Requires (bz #464758) - -* Thu May 22 2008 Christopher Stone 3.2.19-1 -- Upstream sync - -* Thu Feb 21 2008 Christopher Stone 3.2.15-1 -- Upstream sync - -* Wed Feb 13 2008 Christopher Stone 3.2.13-1 -- Upstream sync - -* Sun Nov 25 2007 Christopher Stone 3.2.1-1 -- Upstream sync - -* Sat Sep 08 2007 Christopher Stone 3.1.8-1 -- Upstream sync - -* Sun May 06 2007 Christopher Stone 3.0.6-1 -- Upstream sync - -* Thu Mar 08 2007 Christopher Stone 3.0.5-3 -- Fix testdir -- Fix Provides version - -* Wed Mar 07 2007 Christopher Stone 3.0.5-2 -- Add Obsoletes/Provides for php-pear(PHPUnit2) -- Requires php-pear(PEAR) >= 1.5.0 -- Own %%{pear_testdir}/%%{pear_name} -- Remove no longer needed manual channel install -- Simplify %%doc -- Only unregister old phpunit on upgrade - -* Mon Feb 26 2007 Christopher Stone 3.0.5-1 -- Upstream sync - -* Wed Feb 21 2007 Christohper Stone 3.0.4-1 -- Upstream sync - -* Mon Jan 29 2007 Christopher Stone 3.0.3-1 -- Upstream sync - -* Sun Jan 14 2007 Christopher Stone 3.0.2-1 -- Upstream sync - -* Fri Jan 05 2007 Christopher Stone 3.0.1-1 -- Upstream sync - -* Wed Dec 27 2006 Christopher Stone 3.0.0-1 -- Initial Release diff --git a/php-phpunit-PHPUnit.spec b/php-phpunit-PHPUnit.spec index 5339318..227408f 100644 --- a/php-phpunit-PHPUnit.spec +++ b/php-phpunit-PHPUnit.spec @@ -8,19 +8,21 @@ # # Please, preserve the changelog entries # -%global gh_commit c062dddcb68e44b563f66ee319ddae2b5a322a90 +%global gh_commit 3e6e88e56c912133de6e99b87728cca7ed70c5f5 +#global gh_date 20150927 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project phpunit %global php_home %{_datadir}/php %global pear_name PHPUnit %global pear_channel pear.phpunit.de -%global major 4.8 -%global minor 27 +%global major 5.5 +%global minor 4 +%global specrel 1 Name: php-phpunit-PHPUnit Version: %{major}.%{minor} -Release: 1%{?dist} +Release: %{?gh_date:0.%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist} Summary: The PHP Unit Testing framework Group: Development/Libraries @@ -29,67 +31,71 @@ URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz # Autoload template, from version 3.7 -Source1: Autoload.php.in +Source1: %{gh_project}-5.4.0-Autoload.php.in # Fix command for autoload Patch0: %{gh_project}-rpm.patch -# add --atleast-version option, backported from 5.0 -Patch1: %{gh_project}-atleast.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: php(language) >= 5.3.3 +BuildRequires: php(language) >= 5.6 BuildRequires: %{_bindir}/phpab -BuildRequires: php-composer(phpunit/php-file-iterator) >= 1.3.2 +BuildRequires: php-composer(phpunit/php-file-iterator) >= 1.4 BuildRequires: php-composer(phpunit/php-text-template) >= 1.2 -BuildRequires: php-composer(phpunit/php-code-coverage) >= 2.1 +BuildRequires: php-composer(phpunit/php-code-coverage) >= 4.0 BuildRequires: php-composer(phpunit/php-timer) >= 1.0.6 -BuildRequires: php-composer(phpunit/phpunit-mock-objects) >= 2.3 +BuildRequires: php-composer(phpunit/phpunit-mock-objects) >= 3.2 BuildRequires: php-composer(phpspec/prophecy) >= 1.3.1 BuildRequires: php-composer(sebastian/comparator) >= 1.1 -BuildRequires: php-composer(sebastian/diff) >= 1.1 +BuildRequires: php-composer(sebastian/diff) >= 1.2 BuildRequires: php-composer(sebastian/environment) >= 1.3 BuildRequires: php-composer(sebastian/exporter) >= 1.2 BuildRequires: php-composer(sebastian/recursion-context) >= 1.0 BuildRequires: php-composer(sebastian/global-state) >= 1.0 +BuildRequires: php-composer(sebastian/object-enumerator) >= 1.0 +BuildRequires: php-composer(sebastian/resource-operations) >= 1.0 BuildRequires: php-composer(sebastian/version) >= 1.0 -BuildRequires: php-composer(symfony/yaml) >= 2.0 +BuildRequires: php-composer(myclabs/deep-copy) >= 1.3 +BuildRequires: php-composer(symfony/yaml) >= 2.1 BuildRequires: php-composer(symfony/class-loader) >= 2.0 BuildRequires: php-composer(phpunit/php-invoker) >= 1.1.0 # From composer.json -# "php": ">=5.3.3", +# "php": "^5.6 || ^7.0", # "phpunit/php-file-iterator": "~1.4", # "phpunit/php-text-template": "~1.2", -# "phpunit/php-code-coverage": "~2.1", +# "phpunit/php-code-coverage": "^4.0.1", # "phpunit/php-timer": "^1.0.6", -# "phpunit/phpunit-mock-objects": "~2.2", +# "phpunit/phpunit-mock-objects": "^3.2", # "phpspec/prophecy": "^1.3.1", # "symfony/yaml": "~2.1|~3.0", # "sebastian/comparator": "~1.0", # "sebastian/diff": "~1.2", -# "sebastian/environment": "~1.3", +# "sebastian/environment": "^1.3 || ^2.0", # "sebastian/exporter": "~1.1", # "sebastian/recursion-context": "~1.0", # "sebastian/global-state": "~1.0", -# "sebastian/version": "~1.0", +# "sebastian/object-enumerator": "~1.0", +# "sebastian/resource-operations": "~1.0", +# "sebastian/version": "~1.0|~2.0", +# "myclabs/deep-copy": "~1.3", # "ext-dom": "*", # "ext-json": "*", # "ext-pcre": "*", # "ext-reflection": "*", # "ext-spl": "*" -Requires: php(language) >= 5.3.3 +Requires: php(language) >= 5.6 Requires: php-cli 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.1 -Requires: php-composer(phpunit/php-code-coverage) < 3 +Requires: php-composer(phpunit/php-code-coverage) >= 4.0.1 +Requires: php-composer(phpunit/php-code-coverage) < 5 Requires: php-composer(phpunit/php-timer) >= 1.0.6 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(phpunit/phpunit-mock-objects) >= 3.2 +Requires: php-composer(phpunit/phpunit-mock-objects) < 4 Requires: php-composer(phpspec/prophecy) >= 1.3.1 Requires: php-composer(phpspec/prophecy) < 2 Requires: php-composer(sebastian/comparator) >= 1.1 @@ -97,13 +103,19 @@ Requires: php-composer(sebastian/comparator) < 2 Requires: php-composer(sebastian/diff) >= 1.2 Requires: php-composer(sebastian/diff) < 2 Requires: php-composer(sebastian/environment) >= 1.3 -Requires: php-composer(sebastian/environment) < 2 +Requires: php-composer(sebastian/environment) < 3 Requires: php-composer(sebastian/exporter) >= 1.2 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/object-enumerator) >= 1.0 +Requires: php-composer(sebastian/object-enumerator) < 2 +Requires: php-composer(sebastian/resource-operations) >= 1.0 +Requires: php-composer(sebastian/resource-operations) < 2 Requires: php-composer(sebastian/version) >= 1.0 -Requires: php-composer(sebastian/version) < 2 +Requires: php-composer(sebastian/version) < 3 +Requires: php-composer(myclabs/deep-copy) >= 1.3 +Requires: php-composer(myclabs/deep-copy) < 2 Requires: php-composer(symfony/yaml) >= 2.1 Requires: php-composer(symfony/yaml) < 4 Requires: php-dom @@ -121,8 +133,7 @@ Requires: php-composer(doctrine/instantiator) < 2 Requires: php-composer(symfony/class-loader) >= 2.0 Requires: php-composer(symfony/class-loader) < 3 Requires: php-composer(sebastian/recursion-context) >= 1.0 -# From phpcompatinfo report for version 4.0.18 -Requires: php-date +# From phpcompatinfo report for version 5.4.0 Requires: php-libxml Requires: php-mbstring Requires: php-openssl @@ -154,8 +165,6 @@ for the creation, execution and analysis of Unit Tests. %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p0 -b .rpm -%patch1 -p1 -b .atleast -rm src/TextUI/Command.php.atleast # Restore PSR-0 tree mv src PHPUnit @@ -169,6 +178,7 @@ mv src PHPUnit %{_bindir}/phpab \ --output tests/autoload.php \ + --exclude '*/BankAccountTest2.php' \ tests @@ -181,7 +191,22 @@ install -D -p -m 755 phpunit %{buildroot}%{_bindir}/phpunit %check +# remirepo:11 +run=0 +ret=0 +if which php56; then + php56 ./phpunit --testsuite=small --no-coverage + run=1 +fi +if which php71; then + php71 ./phpunit --testsuite=small --no-coverage + run=1 +fi +if [ $run -eq 0 ]; then ./phpunit --testsuite=small --no-coverage --verbose +# remirepo:2 +fi +exit $ret %clean @@ -206,53 +231,145 @@ fi %changelog -* Tue Jul 26 2016 Remi Collet - 4.8.27-1 -- Update to 4.8.27 +* Wed Aug 31 2016 Remi Collet - 5.5.4-1 +- Update to 5.5.4 + +* Fri Aug 5 2016 Remi Collet - 5.5.0-1 +- Update to 5.5.0 + +* Tue Jul 26 2016 Remi Collet - 5.4.8-1 +- Update to 5.4.8 (no change) +- raise dependency on phpunit/php-code-coverage >= 4.0.1 + +* Thu Jul 21 2016 Remi Collet - 5.4.7-1 +- Update to 5.4.7 + +* Thu Jun 16 2016 Remi Collet - 5.4.6-1 +- Update to 5.4.6 (no change) + +* Wed Jun 15 2016 Remi Collet - 5.4.5-1 +- Update to 5.4.5 + +* Thu Jun 9 2016 Remi Collet - 5.4.4-1 +- Update to 5.4.4 + +* Fri Jun 3 2016 Remi Collet - 5.4.2-1 +- Update to 5.4.2 + +* Fri Jun 3 2016 Remi Collet - 5.4.0-1 +- Update to 5.4.0 +- raise dependency on phpunit/php-code-coverage >= 4.0 +- raise dependency on phpunit/phpunit-mock-objects >= 3.2 + +* Wed May 11 2016 Remi Collet - 5.3.4-1 +- Update to 5.3.4 + +* Wed Apr 13 2016 Remi Collet - 5.3.2-1 +- Update to 5.3.2 + +* Thu Apr 7 2016 Remi Collet - 5.3.1-1 +- Update to 5.3.1 + +* Fri Apr 1 2016 Remi Collet - 5.3.0-1 +- Update to 5.3.0 +- add dependency on sebastian/object-enumerator +- raise dependency on phpunit/phpunit-mock-objects >= 3.1 + +* Tue Mar 15 2016 Remi Collet - 5.2.12-1 +- Update to 5.2.12 + +* Mon Mar 14 2016 Remi Collet - 5.2.11-1 +- Update to 5.2.11 + +* Thu Mar 3 2016 Remi Collet - 5.2.10-1 +- Update to 5.2.10 +- raise dependency on phpunit/php-code-coverage >= 3.3.0 + +* Fri Feb 19 2016 Remi Collet - 5.2.9-1 +- Update to 5.2.9 + +* Thu Feb 18 2016 Remi Collet - 5.2.8-1 +- Update to 5.2.8 +- raise dependency on phpunit/php-code-coverage >= 3.2.1 + +* Tue Feb 16 2016 Remi Collet - 5.2.6-1 +- Update to 5.2.6 + +* Sat Feb 13 2016 Remi Collet - 5.2.5-1 +- Update to 5.2.5 +- raise dependency on phpunit/php-code-coverage >= 3.2 + +* Thu Feb 11 2016 Remi Collet - 5.2.4-1 +- Update to 5.2.4 +- lower dependency on phpunit/php-code-coverage >= 3.0 + +* Sun Feb 7 2016 Remi Collet - 5.2.2-1 +- Update to 5.2.2 + +* Fri Feb 5 2016 Remi Collet - 5.2.1-1 +- Update to 5.2.1 + +* Fri Feb 5 2016 Remi Collet - 5.2.0-1 +- Update to 5.2.0 +- raise dependency on phpunit/php-code-coverage >= 3.1 + +* Tue Feb 2 2016 Remi Collet - 5.1.7-1 +- Update to 5.1.7 + +* Fri Jan 29 2016 Remi Collet - 5.1.6-1 +- Update to 5.1.6 -* Fri Jun 3 2016 Remi Collet - 4.8.26-1 -- Update to 4.8.26 +* Fri Jan 29 2016 Remi Collet - 5.1.5-1 +- Update to 5.1.5 -* Mon Mar 14 2016 Remi Collet - 4.8.24-1 -- Update to 4.8.24 +* Mon Jan 11 2016 Remi Collet - 5.1.4-1 +- Update to 5.1.4 -* Thu Feb 11 2016 Remi Collet - 4.8.23-1 -- Update to 4.8.23 +* Thu Dec 10 2015 Remi Collet - 5.1.3-1 +- Update to 5.1.3 +- obsolete php-phpunit-PHPUnit-Selenium -* Tue Feb 2 2016 Remi Collet - 4.8.22-1 -- Update to 4.8.22 +* Mon Dec 7 2015 Remi Collet - 5.1.2-1 +- Update to 5.1.2 -* Sat Dec 12 2015 Remi Collet - 4.8.21-1 -- Update to 4.8.21 +* Thu Dec 3 2015 Remi Collet - 5.1.0-1 +- Update to 5.1.0 -* Thu Dec 10 2015 Remi Collet - 4.8.20-1 -- Update to 4.8.20 +* Mon Nov 30 2015 Remi Collet - 5.0.10-1 +- Update to 5.0.10 +- run test suite with both PHP 5 and 7 when available -* Mon Nov 30 2015 Remi Collet - 4.8.19-1 -- Update to 4.8.19 +* Wed Nov 11 2015 Remi Collet - 5.0.9-1 +- Update to 5.0.9 -* Wed Nov 11 2015 Remi Collet - 4.8.17-1 -- Update to 4.8.17 +* Fri Oct 23 2015 Remi Collet - 5.0.8-1 +- Update to 5.0.8 (no change) -* Fri Oct 23 2015 Remi Collet - 4.8.16-1 -- Update to 4.8.16 (no change) +* Thu Oct 22 2015 Remi Collet - 5.0.7-1 +- Update to 5.0.7 -* Thu Oct 22 2015 Remi Collet - 4.8.15-1 -- Update to 4.8.15 +* Wed Oct 14 2015 Remi Collet - 5.0.6-1 +- Update to 5.0.6 -* Sat Oct 17 2015 Remi Collet - 4.8.14-1 -- Update to 4.8.14 +* Mon Oct 12 2015 Remi Collet - 5.0.5-1 +- Update to 5.0.5 -* Wed Oct 14 2015 Remi Collet - 4.8.13-1 -- Update to 4.8.13 +* Wed Oct 7 2015 Remi Collet - 5.0.4-1 +- Update to 5.0.4 -* Mon Oct 12 2015 Remi Collet - 4.8.12-1 -- Update to 4.8.12 +* Fri Oct 2 2015 Remi Collet - 5.0.3-1 +- Update to 5.0.3 (no change) -* Wed Oct 7 2015 Remi Collet - 4.8.11-1 -- Update to 4.8.11 +* Fri Oct 2 2015 Remi Collet - 5.0.2-1 +- Update to 5.0.2 -* Fri Oct 2 2015 Remi Collet - 4.8.10-1 -- Update to 4.8.10 +* Tue Sep 29 2015 Remi Collet - 5.0.0-0.1.20150927gite3b3f36 +- update to 5.0.0-dev +- raise dependency on PHP >= 5.6 +- raise dependency on phpunit/php-code-coverage ~3.0 +- raise dependency on phpunit/phpunit-mock-objects ~3.0 +- add dependency on sebastian/resource-operations ~1.0 +- add dependency on myclabs/deep-copy ~1.3 * Sun Sep 27 2015 Remi Collet - 4.8.9-2 - add --atleast-version command option, backported from 5.0 diff --git a/phpunit-atleast.patch b/phpunit-atleast.patch deleted file mode 100644 index 5f2ea0a..0000000 --- a/phpunit-atleast.patch +++ /dev/null @@ -1,56 +0,0 @@ -add --atleast-version command option, backported from 5.0 - -See https://github.com/sebastianbergmann/phpunit/pull/1876 - -https://github.com/sebastianbergmann/phpunit/commit/0f335c6908f924042ea3ac9e2c110aa6dce7800e -https://github.com/sebastianbergmann/phpunit/commit/e3b3f36dab3a896f8def75e6ed5789ca40e02872 - -diff -up ./src/TextUI/Command.php.atleast ./src/TextUI/Command.php ---- ./src/TextUI/Command.php.atleast 2015-09-20 14:56:44.000000000 +0200 -+++ ./src/TextUI/Command.php 2015-09-27 11:27:03.043289929 +0200 -@@ -34,6 +34,7 @@ class PHPUnit_TextUI_Command - * @var array - */ - protected $longOptions = array( -+ 'atleast-version=' => null, - 'colors==' => null, - 'bootstrap=' => null, - 'columns=' => null, -@@ -437,6 +438,13 @@ class PHPUnit_TextUI_Command - $this->arguments['verbose'] = true; - break; - -+ case '--atleast-version': -+ exit (version_compare(PHPUnit_Runner_Version::id(), $option[1], '>=') -+ ? PHPUnit_TextUI_TestRunner::SUCCESS_EXIT -+ : PHPUnit_TextUI_TestRunner::FAILURE_EXIT -+ ); -+ break; -+ - case '--version': - $this->printVersionString(); - exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT); -@@ -948,6 +956,7 @@ Miscellaneous Options: - - -h|--help Prints this usage information. - --version Prints the version and exits. -+ --atleast-version Checks that version is greater than min and exits. - - EOT; - -diff -up ./tests/TextUI/help2.phpt.atleast ./tests/TextUI/help2.phpt ---- ./tests/TextUI/help2.phpt.atleast 2015-09-20 14:56:44.000000000 +0200 -+++ ./tests/TextUI/help2.phpt 2015-09-27 11:27:03.043289929 +0200 -@@ -86,3 +86,4 @@ Miscellaneous Options: - - -h|--help Prints this usage information. - --version Prints the version and exits. -+ --atleast-version Checks that version is greater than min and exits. -diff -up ./tests/TextUI/help.phpt.atleast ./tests/TextUI/help.phpt ---- ./tests/TextUI/help.phpt.atleast 2015-09-20 14:56:44.000000000 +0200 -+++ ./tests/TextUI/help.phpt 2015-09-27 11:27:03.043289929 +0200 -@@ -85,3 +85,4 @@ Miscellaneous Options: - - -h|--help Prints this usage information. - --version Prints the version and exits. -+ --atleast-version Checks that version is greater than min and exits. -- cgit