diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-06-03 08:48:41 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-06-03 08:48:41 +0200 |
commit | 4c8f7f86461c38c4023d26539fb77d8ff214e833 (patch) | |
tree | 90840b14a5eaf901b61c517ab489b526b79e5671 | |
parent | 31a863e92517ac0fdc5b63ca01f55c0857740616 (diff) |
php-phpunit-PHPUnit: 5.4.0 (WIP, blocked by dependent packages)
-rw-r--r-- | composer-dev.json | 6 | ||||
-rw-r--r-- | php-phpunit-PHPUnit-dev.spec | 30 | ||||
-rw-r--r-- | phpunit-5.4.0-Autoload.php.in (renamed from phpunit-5.3.0-Autoload.php.in) | 6 |
3 files changed, 24 insertions, 18 deletions
diff --git a/composer-dev.json b/composer-dev.json index d1a66c6..142b29b 100644 --- a/composer-dev.json +++ b/composer-dev.json @@ -23,9 +23,9 @@ "php": "^5.6 || ^7.0", "phpunit/php-file-iterator": "~1.4", "phpunit/php-text-template": "~1.2", - "phpunit/php-code-coverage": "^3.3.0", + "phpunit/php-code-coverage": "^4.0", "phpunit/php-timer": "^1.0.6", - "phpunit/phpunit-mock-objects": "^3.1", + "phpunit/phpunit-mock-objects": "^3.2", "phpspec/prophecy": "^1.3.1", "symfony/yaml": "~2.1|~3.0", "sebastian/comparator": "~1.1", @@ -70,7 +70,7 @@ }, "extra": { "branch-alias": { - "dev-master": "5.3.x-dev" + "dev-master": "5.4.x-dev" } } } diff --git a/php-phpunit-PHPUnit-dev.spec b/php-phpunit-PHPUnit-dev.spec index 464a97d..191494c 100644 --- a/php-phpunit-PHPUnit-dev.spec +++ b/php-phpunit-PHPUnit-dev.spec @@ -8,7 +8,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 00dd95ffb48805503817ced06399017df315fe5c +%global gh_commit 32428748cee28724d24e7d3b5fb3151170a1aed2 #global gh_date 20150927 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann @@ -16,8 +16,8 @@ %global php_home %{_datadir}/php %global pear_name PHPUnit %global pear_channel pear.phpunit.de -%global major 5.3 -%global minor 4 +%global major 5.4 +%global minor 0 %global specrel 1 Name: php-phpunit-PHPUnit @@ -31,7 +31,7 @@ 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.3.0-Autoload.php.in +Source1: %{gh_project}-5.4.0-Autoload.php.in # Fix command for autoload Patch0: %{gh_project}-rpm.patch @@ -42,9 +42,9 @@ 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) >= 3.3.0 +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.0 +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 @@ -64,9 +64,9 @@ BuildRequires: php-composer(phpunit/php-invoker) >= 1.1.0 # "php": "^5.6 || ^7.0", # "phpunit/php-file-iterator": "~1.4", # "phpunit/php-text-template": "~1.2", -# "phpunit/php-code-coverage": "^3.3.0", +# "phpunit/php-code-coverage": "^4.0", # "phpunit/php-timer": "^1.0.6", -# "phpunit/phpunit-mock-objects": "^3.1", +# "phpunit/phpunit-mock-objects": "^3.2", # "phpspec/prophecy": "^1.3.1", # "symfony/yaml": "~2.1|~3.0", # "sebastian/comparator": "~1.0", @@ -90,11 +90,11 @@ 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) >= 3.3.0 -Requires: php-composer(phpunit/php-code-coverage) < 4 +Requires: php-composer(phpunit/php-code-coverage) >= 4.0 +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.1 +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 @@ -133,7 +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 5.2.9 +# From phpcompatinfo report for version 5.4.0 Requires: php-libxml Requires: php-mbstring Requires: php-openssl @@ -178,6 +178,7 @@ mv src PHPUnit %{_bindir}/phpab \ --output tests/autoload.php \ + --exclude '*/BankAccountTest2.php' \ tests @@ -219,6 +220,11 @@ fi %changelog +* Fri Jun 3 2016 Remi Collet <remi@fedoraproject.org> - 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 <remi@fedoraproject.org> - 5.3.4-1 - Update to 5.3.4 diff --git a/phpunit-5.3.0-Autoload.php.in b/phpunit-5.4.0-Autoload.php.in index 5eba070..c295c8f 100644 --- a/phpunit-5.3.0-Autoload.php.in +++ b/phpunit-5.4.0-Autoload.php.in @@ -37,7 +37,7 @@ spl_autoload_register( /* Required */ require_once 'File/Iterator/Autoload.php'; -require_once 'PHP/CodeCoverage/Autoload.php'; +require_once 'SebastianBergmann/CodeCoverage/autoload.php'; require_once 'PHP/Timer/Autoload.php'; require_once 'PHPUnit/Framework/MockObject/Autoload.php'; require_once 'Text/Template/Autoload.php'; @@ -55,12 +55,12 @@ require_once 'SebastianBergmann/ResourceOperations/autoload.php'; require_once 'DeepCopy/autoload.php'; /* Optional */ -foreach(array( +foreach([ 'PHPUnit/Extensions/Database/Autoload.php', 'PHPUnit/Extensions/SeleniumCommon/Autoload.php', 'PHPUnit/Extensions/SeleniumTestCase/Autoload.php', 'PHPUnit/Extensions/Story/Autoload.php' - ) as $opt) { + ] as $opt) { if ($fic = stream_resolve_include_path($opt)) { require_once $fic; } |