From ad982d90aa219358e9f4901acb7de4e39fd7f8fd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 7 Feb 2020 16:50:14 +0100 Subject: update to 9.0.0 raise dependency on PHP 7.3 raise dependency on phpunit/php-code-coverage 8 raise dependency on phpunit/php-file-iterator 3 raise dependency on phpunit/php-text-template 2 raise dependency on phpunit/php-timer 3 raise dependency on sebastian/comparator 4 raise dependency on sebastian/diff 4 raise dependency on sebastian/environment 5 raise dependency on sebastian/exporter 4 raise dependency on sebastian/global-state 4 raise dependency on sebastian/object-enumerator 4 raise dependency on sebastian/resource-operations 3 raise dependency on sebastian/type 2 raise dependency on sebastian/version 3 add dependency on phpunit/php-invoker 3 rename to phpunit9 move to /usr/share/php/PHPUnit9 --- composer.json | 38 +++++------ phpunit9-rpm.patch | 27 ++++---- phpunit9.spec | 184 ++++++++++++++++++++++++++++++----------------------- 3 files changed, 136 insertions(+), 113 deletions(-) diff --git a/composer.json b/composer.json index 305fe7a..4c7ed7b 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ }, "prefer-stable": true, "require": { - "php": "^7.2", + "php": "^7.3", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -33,32 +33,32 @@ "phar-io/manifest": "^1.0.3", "phar-io/version": "^2.0.1", "phpspec/prophecy": "^1.8.1", - "phpunit/php-code-coverage": "^7.0.7", - "phpunit/php-file-iterator": "^2.0.2", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^2.1.2", - "sebastian/comparator": "^3.0.2", - "sebastian/diff": "^3.0.2", - "sebastian/environment": "^4.2.2", - "sebastian/exporter": "^3.1.1", - "sebastian/global-state": "^3.0.0", - "sebastian/object-enumerator": "^3.0.3", - "sebastian/resource-operations": "^2.0.1", - "sebastian/type": "^1.1.3", - "sebastian/version": "^2.0.1" + "phpunit/php-code-coverage": "^8.0", + "phpunit/php-file-iterator": "^3.0", + "phpunit/php-invoker": "^3.0", + "phpunit/php-text-template": "^2.0", + "phpunit/php-timer": "^3.0", + "sebastian/comparator": "^4.0", + "sebastian/diff": "^4.0", + "sebastian/environment": "^5.0", + "sebastian/exporter": "^4.0", + "sebastian/global-state": "^4.0", + "sebastian/object-enumerator": "^4.0", + "sebastian/resource-operations": "^3.0", + "sebastian/type": "^2.0", + "sebastian/version": "^3.0" }, "require-dev": { "ext-PDO": "*" }, "config": { "platform": { - "php": "7.2.0" + "php": "7.3.0" }, "optimize-autoloader": true, "sort-packages": true }, "suggest": { - "phpunit/php-invoker": "^2.0.0", "ext-soap": "*", "ext-xdebug": "*" }, @@ -68,6 +68,9 @@ "autoload": { "classmap": [ "src/" + ], + "files": [ + "src/Framework/Assert/Functions.php" ] }, "autoload-dev": { @@ -75,7 +78,6 @@ "tests/" ], "files": [ - "src/Framework/Assert/Functions.php", "tests/_files/CoverageNamespacedFunctionTest.php", "tests/_files/CoveredFunction.php", "tests/_files/NamespaceCoveredFunction.php" @@ -83,7 +85,7 @@ }, "extra": { "branch-alias": { - "dev-master": "8.5-dev" + "dev-master": "9.0-dev" } } } diff --git a/phpunit9-rpm.patch b/phpunit9-rpm.patch index 8b70cbd..62091a4 100644 --- a/phpunit9-rpm.patch +++ b/phpunit9-rpm.patch @@ -1,6 +1,6 @@ diff -up ./phpunit.rpm ./phpunit ---- ./phpunit.rpm 2019-02-01 06:41:59.000000000 +0100 -+++ ./phpunit 2019-02-01 08:43:27.079804951 +0100 +--- ./phpunit.rpm 2020-02-07 07:56:17.000000000 +0100 ++++ ./phpunit 2020-02-07 16:20:53.817753399 +0100 @@ -27,25 +27,12 @@ if (!ini_get('date.timezone')) { ini_set('date.timezone', 'UTC'); } @@ -29,7 +29,7 @@ diff -up ./phpunit.rpm ./phpunit + echo "\n==== Redirecting to composer installed version in vendor/phpunit ====\n\n"; + define ('PHPUNIT_COMPOSER_INSTALL', realpath('./vendor/autoload.php')); +} else { -+ define ('PHPUNIT_COMPOSER_INSTALL', '/usr/share/php/PHPUnit8/autoload.php'); ++ define ('PHPUNIT_COMPOSER_INSTALL', '/usr/share/php/PHPUnit9/autoload.php'); } $options = getopt('', array('prepend:')); @@ -43,22 +43,22 @@ diff -up ./phpunit.rpm ./phpunit +} else { + PHPUnit\TextUI\Command::main(); // PHPUnit v6 or newer +} -diff -up ./src/Util/Configuration.php.rpm ./src/Util/Configuration.php ---- ./src/Util/Configuration.php.rpm 2019-02-01 06:41:59.000000000 +0100 -+++ ./src/Util/Configuration.php 2019-02-01 08:43:27.079804951 +0100 -@@ -899,7 +899,7 @@ final class Configuration - private function validateConfigurationAgainstSchema(): void +diff -up ./src/TextUI/Configuration/Loader.php.rpm ./src/TextUI/Configuration/Loader.php +--- ./src/TextUI/Configuration/Loader.php.rpm 2020-02-07 07:56:17.000000000 +0100 ++++ ./src/TextUI/Configuration/Loader.php 2020-02-07 16:20:53.818753394 +0100 +@@ -194,7 +194,7 @@ final class Loader + private function validate(\DOMDocument $document): array { $original = \libxml_use_internal_errors(true); -- $xsdFilename = __DIR__ . '/../../phpunit.xsd'; -+ $xsdFilename = __DIR__ . '/../phpunit.xsd'; +- $xsdFilename = __DIR__ . '/../../../phpunit.xsd'; ++ $xsdFilename = __DIR__ . '/../../phpunit.xsd'; if (\defined('__PHPUNIT_PHAR_ROOT__')) { $xsdFilename = __PHPUNIT_PHAR_ROOT__ . '/phpunit.xsd'; diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php ---- ./tests/bootstrap.php.rpm 2019-02-01 08:43:27.080804957 +0100 -+++ ./tests/bootstrap.php 2019-02-01 08:44:59.691284599 +0100 -@@ -14,4 +14,9 @@ if (!\defined('TEST_FILES_PATH')) { +--- ./tests/bootstrap.php.rpm 2020-02-07 16:21:18.097630840 +0100 ++++ ./tests/bootstrap.php 2020-02-07 16:22:12.237357522 +0100 +@@ -14,4 +14,8 @@ if (!\defined('TEST_FILES_PATH')) { \ini_set('precision', '14'); \ini_set('serialize_precision', '14'); @@ -67,5 +67,4 @@ diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php +require_once __DIR__ . '/_files/CoverageNamespacedFunctionTest.php'; +require_once __DIR__ . '/_files/CoveredFunction.php'; +require_once __DIR__ . '/_files/NamespaceCoveredFunction.php'; -+require_once '@PATH@/Framework/Assert/Functions.php'; +require_once __DIR__ . '/autoload.php'; diff --git a/phpunit9.spec b/phpunit9.spec index 3b444fb..c18e71e 100644 --- a/phpunit9.spec +++ b/phpunit9.spec @@ -1,4 +1,4 @@ -# remirepo/fedora spec file for phpunit8 +# remirepo/fedora spec file for phpunit9 # # Copyright (c) 2010-2020 Remi Collet # @@ -11,7 +11,7 @@ # For compatibility with SCL %undefine __brp_mangle_shebangs -%global gh_commit 018b6ac3c8ab20916db85fa91bf6465acb64d1e0 +%global gh_commit a5be9621b19ee19dca5f150a5b159f48b5389547 #global gh_date 20150927 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_vendor sebastianbergmann @@ -20,11 +20,11 @@ %global pk_vendor phpunit %global pk_project phpunit # Namespace -%global ns_vendor PHPUnit8 +%global ns_vendor PHPUnit9 %global php_home %{_datadir}/php -%global ver_major 8 -%global ver_minor 5 -%global ver_patch 2 +%global ver_major 9 +%global ver_minor 0 +%global ver_patch 0 %global specrel 1 Name: %{pk_project}%{ver_major} @@ -40,7 +40,7 @@ Source0: https://github.com/%{gh_vendor}/%{gh_project}/archive/%{gh_commi Patch0: %{name}-rpm.patch BuildArch: noarch -BuildRequires: php(language) >= 7.2 +BuildRequires: php(language) >= 7.3 # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: (php-composer(doctrine/instantiator) >= 1.2.0 with php-composer(doctrine/instantiator) < 2) @@ -48,20 +48,20 @@ BuildRequires: (php-composer(myclabs/deep-copy) >= 1.9.1 with php-c BuildRequires: (php-composer(phar-io/manifest) >= 1.0.3 with php-composer(phar-io/manifest) < 2) BuildRequires: (php-composer(phar-io/version) >= 2.0.1 with php-composer(phar-io/version) < 3) BuildRequires: (php-composer(phpspec/prophecy) >= 1.8.1 with php-composer(phpspec/prophecy) < 2) -BuildRequires: (php-composer(phpunit/php-code-coverage) >= 7.0.7 with php-composer(phpunit/php-code-coverage) < 8) -BuildRequires: (php-composer(phpunit/php-file-iterator) >= 2.0.2 with php-composer(phpunit/php-file-iterator) < 3) -BuildRequires: (php-composer(phpunit/php-text-template) >= 1.2.1 with php-composer(phpunit/php-text-template) < 2) -BuildRequires: (php-composer(phpunit/php-timer) >= 2.1.2 with php-composer(phpunit/php-timer) < 3) -BuildRequires: (php-composer(sebastian/comparator) >= 3.0.2 with php-composer(sebastian/comparator) < 4) -BuildRequires: (php-composer(sebastian/diff) >= 3.0.2 with php-composer(sebastian/diff) < 4) -BuildRequires: (php-composer(sebastian/environment) >= 4.2.2 with php-composer(sebastian/environment) < 5) -BuildRequires: (php-composer(sebastian/exporter) >= 3.1.1 with php-composer(sebastian/exporter) < 4) -BuildRequires: (php-composer(sebastian/global-state) >= 3.0.0 with php-composer(sebastian/global-state) < 4) -BuildRequires: (php-composer(sebastian/object-enumerator) >= 3.0.3 with php-composer(sebastian/object-enumerator) < 4) -BuildRequires: (php-composer(sebastian/resource-operations) >= 2.0.1 with php-composer(sebastian/resource-operations) < 3) -BuildRequires: (php-composer(sebastian/version) >= 2.0.1 with php-composer(sebastian/version) < 3) -BuildRequires: (php-composer(sebastian/type) >= 1.1.3 with php-composer(sebastian/type) < 2) -BuildRequires: (php-composer(phpunit/php-invoker) >= 2.0.0 with php-composer(phpunit/php-invoker) < 3) +BuildRequires: (php-composer(phpunit/php-code-coverage) >= 8.0 with php-composer(phpunit/php-code-coverage) < 9) +BuildRequires: (php-composer(phpunit/php-file-iterator) >= 3.0 with php-composer(phpunit/php-file-iterator) < 4) +BuildRequires: (php-composer(phpunit/php-invoker) >= 3.0 with php-composer(phpunit/php-invoker) < 4) +BuildRequires: (php-composer(phpunit/php-text-template) >= 2.0 with php-composer(phpunit/php-text-template) < 3) +BuildRequires: (php-composer(phpunit/php-timer) >= 3.0 with php-composer(phpunit/php-timer) < 4) +BuildRequires: (php-composer(sebastian/comparator) >= 4.0 with php-composer(sebastian/comparator) < 5) +BuildRequires: (php-composer(sebastian/diff) >= 4.0 with php-composer(sebastian/diff) < 5) +BuildRequires: (php-composer(sebastian/environment) >= 5.0 with php-composer(sebastian/environment) < 6) +BuildRequires: (php-composer(sebastian/exporter) >= 4.0 with php-composer(sebastian/exporter) < 5) +BuildRequires: (php-composer(sebastian/global-state) >= 4.0 with php-composer(sebastian/global-state) < 5) +BuildRequires: (php-composer(sebastian/object-enumerator) >= 4.0 with php-composer(sebastian/object-enumerator) < 5) +BuildRequires: (php-composer(sebastian/resource-operations) >= 3.0 with php-composer(sebastian/resource-operations) < 4) +BuildRequires: (php-composer(sebastian/type) >= 2.0 with php-composer(sebastian/type) < 3) +BuildRequires: (php-composer(sebastian/version) >= 3.0 with php-composer(sebastian/version) < 4) # remirepo:21 %else BuildRequires: php-doctrine-instantiator11 >= 1.2.0 @@ -69,20 +69,20 @@ BuildRequires: php-myclabs-deep-copy19 >= 1.9.1 BuildRequires: php-phar-io-manifest >= 1.0.3 BuildRequires: php-phar-io-version >= 2.0.1 BuildRequires: php-phpspec-prophecy >= 1.8.1 -BuildRequires: php-phpunit-php-code-coverage7 >= 7.0.7 -BuildRequires: php-phpunit-php-file-iterator2 >= 2.0.2 -BuildRequires: php-phpunit-Text-Template >= 1.2.1 -BuildRequires: php-phpunit-php-timer2 >= 2.1.2 -BuildRequires: php-sebastian-comparator3 >= 3.0.2 -BuildRequires: php-sebastian-diff3 >= 3.0.2 -BuildRequires: php-sebastian-environment4 >= 4.2.2 -BuildRequires: php-sebastian-exporter3 >= 3.1.1 -BuildRequires: php-sebastian-global-state3 -BuildRequires: php-sebastian-object-enumerator3 >= 3.0.3 -BuildRequires: php-sebastian-resource-operations2 >= 2.0.1 -BuildRequires: php-sebastian-type >= 1.1.3 -BuildRequires: php-phpunit-Version >= 2.0.1 -BuildRequires: php-phpunit-php-invoker2 +BuildRequires: php-phpunit-php-code-coverage8 +BuildRequires: php-phpunit-php-file-iterator3 +BuildRequires: php-phpunit-php-invoker3 +BuildRequires: php-phpunit-php-text-template2 +BuildRequires: php-phpunit-php-timer3 +BuildRequires: php-sebastian-comparator4 +BuildRequires: php-sebastian-diff4 +BuildRequires: php-sebastian-environment5 +BuildRequires: php-sebastian-exporter4 +BuildRequires: php-sebastian-global-state4 +BuildRequires: php-sebastian-object-enumerator4 +BuildRequires: php-sebastian-resource-operations3 +BuildRequires: php-sebastian-type2 +BuildRequires: php-sebastian-version3 %endif BuildRequires: php-dom BuildRequires: php-json @@ -94,7 +94,7 @@ BuildRequires: php-xmlwriter BuildRequires: php-fedora-autoloader-devel >= 1.0.0 # From composer.json, "require": { -# "php": "^7.2", +# "php": "^7.3", # "ext-dom": "*", # "ext-json": "*", # "ext-libxml": "*", @@ -119,7 +119,7 @@ BuildRequires: php-fedora-autoloader-devel >= 1.0.0 # "sebastian/resource-operations": "^2.0.1", # "sebastian/type": "^1.1.3", # "sebastian/version": "^2.0.1", -Requires: php(language) >= 7.2 +Requires: php(language) >= 7.3 Requires: php-cli Requires: php-dom Requires: php-json @@ -134,24 +134,23 @@ Requires: (php-composer(myclabs/deep-copy) >= 1.9.1 with php-c Requires: (php-composer(phar-io/manifest) >= 1.0.3 with php-composer(phar-io/manifest) < 2) Requires: (php-composer(phar-io/version) >= 2.0.1 with php-composer(phar-io/version) < 3) Requires: (php-composer(phpspec/prophecy) >= 1.8.1 with php-composer(phpspec/prophecy) < 2) -Requires: (php-composer(phpunit/php-code-coverage) >= 7.0.7 with php-composer(phpunit/php-code-coverage) < 8) -Requires: (php-composer(phpunit/php-file-iterator) >= 2.0.2 with php-composer(phpunit/php-file-iterator) < 3) -Requires: (php-composer(phpunit/php-text-template) >= 1.2.1 with php-composer(phpunit/php-text-template) < 2) -Requires: (php-composer(phpunit/php-timer) >= 2.1.2 with php-composer(phpunit/php-timer) < 3) -Requires: (php-composer(sebastian/comparator) >= 3.0.2 with php-composer(sebastian/comparator) < 4) -Requires: (php-composer(sebastian/diff) >= 3.0.2 with php-composer(sebastian/diff) < 4) -Requires: (php-composer(sebastian/environment) >= 4.2.2 with php-composer(sebastian/environment) < 5) -Requires: (php-composer(sebastian/exporter) >= 3.1.1 with php-composer(sebastian/exporter) < 4) -Requires: (php-composer(sebastian/global-state) >= 3.0.0 with php-composer(sebastian/global-state) < 4) -Requires: (php-composer(sebastian/object-enumerator) >= 3.0.3 with php-composer(sebastian/object-enumerator) < 4) -Requires: (php-composer(sebastian/resource-operations) >= 2.0.1 with php-composer(sebastian/resource-operations) < 3) -Requires: (php-composer(sebastian/type) >= 1.1.3 with php-composer(sebastian/type) < 2) -Requires: (php-composer(sebastian/version) >= 2.0.1 with php-composer(sebastian/version) < 3) +Requires: (php-composer(phpunit/php-code-coverage) >= 8.0 with php-composer(phpunit/php-code-coverage) < 9) +Requires: (php-composer(phpunit/php-file-iterator) >= 3.0 with php-composer(phpunit/php-file-iterator) < 4) +Requires: (php-composer(phpunit/php-invoker) >= 3.0 with php-composer(phpunit/php-invoker) < 4) +Requires: (php-composer(phpunit/php-text-template) >= 2.0 with php-composer(phpunit/php-text-template) < 3) +Requires: (php-composer(phpunit/php-timer) >= 3.0 with php-composer(phpunit/php-timer) < 4) +Requires: (php-composer(sebastian/comparator) >= 4.0 with php-composer(sebastian/comparator) < 5) +Requires: (php-composer(sebastian/diff) >= 4.0 with php-composer(sebastian/diff) < 5) +Requires: (php-composer(sebastian/environment) >= 5.0 with php-composer(sebastian/environment) < 6) +Requires: (php-composer(sebastian/exporter) >= 4.0 with php-composer(sebastian/exporter) < 5) +Requires: (php-composer(sebastian/global-state) >= 4.0 with php-composer(sebastian/global-state) < 5) +Requires: (php-composer(sebastian/object-enumerator) >= 4.0 with php-composer(sebastian/object-enumerator) < 5) +Requires: (php-composer(sebastian/resource-operations) >= 3.0 with php-composer(sebastian/resource-operations) < 4) +Requires: (php-composer(sebastian/type) >= 2.0 with php-composer(sebastian/type) < 3) +Requires: (php-composer(sebastian/version) >= 3.0 with php-composer(sebastian/version) < 4) # From composer.json, "suggest": { -# "phpunit/php-invoker": "^2.0.0", # "ext-soap": "*", # "ext-xdebug": "*" -Requires: (php-composer(phpunit/php-invoker) >= 2.0.0 with php-composer(phpunit/php-invoker) < 3) Suggests: php-soap Suggests: php-xdebug # remirepo:21 @@ -161,20 +160,20 @@ Requires: php-myclabs-deep-copy19 >= 1.9.1 Requires: php-phar-io-manifest >= 1.0.3 Requires: php-phar-io-version >= 2.0.1 Requires: php-phpspec-prophecy >= 1.8.1 -Requires: php-phpunit-php-code-coverage7 >= 7.0.7 -Requires: php-phpunit-php-file-iterator2 >= 2.0.2 -Requires: php-phpunit-Text-Template >= 1.2.1 -Requires: php-phpunit-php-timer2 >= 2.1.2 -Requires: php-sebastian-comparator3 >= 3.0.2 -Requires: php-sebastian-diff3 >= 3.0.2 -Requires: php-sebastian-environment4 >= 4.2.2 -Requires: php-sebastian-exporter3 >= 3.1.1 -Requires: php-sebastian-global-state3 -Requires: php-sebastian-object-enumerator3 >= 3.0.3 -Requires: php-sebastian-resource-operations2 >= 2.0.1 -Requires: php-sebastian-type >= 1.1.3 -Requires: php-phpunit-Version >= 2.0.1 -Requires: php-phpunit-php-invoker2 +Requires: php-phpunit-php-code-coverage8 +Requires: php-phpunit-php-file-iterator3 +Requires: php-phpunit-php-invoker3 +Requires: php-phpunit-php-text-template2 +Requires: php-phpunit-php-timer3 +Requires: php-sebastian-comparator4 +Requires: php-sebastian-diff4 +Requires: php-sebastian-environment5 +Requires: php-sebastian-exporter4 +Requires: php-sebastian-global-state4 +Requires: php-sebastian-object-enumerator4 +Requires: php-sebastian-resource-operations3 +Requires: php-sebastian-type2 +Requires: php-sebastian-version3 %endif # Autoloader Requires: php-composer(fedora/autoloader) @@ -201,6 +200,8 @@ Documentation: https://phpunit.readthedocs.io/ %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p0 -b .rpm +find . -name \*.rpm -delete -print + %build %{_bindir}/phpab \ @@ -211,20 +212,21 @@ Documentation: https://phpunit.readthedocs.io/ cat << 'EOF' | tee -a src/autoload.php // Dependencies \Fedora\Autoloader\Dependencies::required([ - '%{php_home}/SebastianBergmann/FileIterator2/autoload.php', - '%{php_home}/Text/Template/Autoload.php', - '%{php_home}/SebastianBergmann/CodeCoverage7/autoload.php', - '%{php_home}/SebastianBergmann/Timer/autoload.php', + '%{php_home}/SebastianBergmann/CodeCoverage8/autoload.php', + '%{php_home}/SebastianBergmann/FileIterator3/autoload.php', + '%{php_home}/SebastianBergmann/Template2/autoload.php', + '%{php_home}/SebastianBergmann/Timer3/autoload.php', '%{php_home}/Prophecy/autoload.php', - '%{php_home}/SebastianBergmann/Diff3/autoload.php', // Before comparator which may load v2 - '%{php_home}/SebastianBergmann/Comparator3/autoload.php', - '%{php_home}/SebastianBergmann/Environment4/autoload.php', - '%{php_home}/SebastianBergmann/Exporter3/autoload.php', - '%{php_home}/SebastianBergmann/GlobalState3/autoload.php', - '%{php_home}/SebastianBergmann/ObjectEnumerator3/autoload.php', - '%{php_home}/SebastianBergmann/ResourceOperations2/autoload.php', - '%{php_home}/SebastianBergmann/Type/autoload.php', - '%{php_home}/SebastianBergmann/Version/autoload.php', + '%{php_home}/SebastianBergmann/Invoker3/autoload.php', + '%{php_home}/SebastianBergmann/Diff4/autoload.php', + '%{php_home}/SebastianBergmann/Comparator4/autoload.php', + '%{php_home}/SebastianBergmann/Environment5/autoload.php', + '%{php_home}/SebastianBergmann/Exporter4/autoload.php', + '%{php_home}/SebastianBergmann/GlobalState4/autoload.php', + '%{php_home}/SebastianBergmann/ObjectEnumerator4/autoload.php', + '%{php_home}/SebastianBergmann/ResourceOperations3/autoload.php', + '%{php_home}/SebastianBergmann/Type2/autoload.php', + '%{php_home}/SebastianBergmann/Version3/autoload.php', [ '%{php_home}/Doctrine/Instantiator11/autoload.php', '%{php_home}/Doctrine/Instantiator/autoload.php', @@ -233,9 +235,9 @@ cat << 'EOF' | tee -a src/autoload.php '%{php_home}/DeepCopy19/autoload.php', '%{php_home}/DeepCopy/autoload.php', ], - '%{php_home}/SebastianBergmann/Invoker/autoload.php', '%{php_home}/PharIo/Manifest/autoload.php', '%{php_home}/PharIo/Version/autoload.php', + __DIR__ . '/Framework/Assert/Functions.php', ]); EOF cat src/autoload.php @@ -263,7 +265,7 @@ sed -e 's:@PATH@:%{buildroot}%{php_home}/%{ns_vendor}:' -i tests/bootstrap.php sed -e 's:%{php_home}/%{ns_vendor}:%{buildroot}%{php_home}/%{ns_vendor}:' -i phpunit ret=0 -for cmd in php php72 php73 php74; do +for cmd in php php73 php74; do if which $cmd; then $cmd ./phpunit $OPT --verbose || ret=1 fi @@ -282,6 +284,26 @@ exit $ret %changelog +* Fri Feb 7 2020 Remi Collet - 9.0.0-1 +- update to 9.0.0 +- raise dependency on PHP 7.3 +- raise dependency on phpunit/php-code-coverage 8 +- raise dependency on phpunit/php-file-iterator 3 +- raise dependency on phpunit/php-text-template 2 +- raise dependency on phpunit/php-timer 3 +- raise dependency on sebastian/comparator 4 +- raise dependency on sebastian/diff 4 +- raise dependency on sebastian/environment 5 +- raise dependency on sebastian/exporter 4 +- raise dependency on sebastian/global-state 4 +- raise dependency on sebastian/object-enumerator 4 +- raise dependency on sebastian/resource-operations 3 +- raise dependency on sebastian/type 2 +- raise dependency on sebastian/version 3 +- add dependency on phpunit/php-invoker 3 +- rename to phpunit9 +- move to /usr/share/php/PHPUnit9 + * Wed Jan 8 2020 Remi Collet - 8.5.2-1 - update to 8.5.2 -- cgit