Compare commits

..

25 commits

Author SHA1 Message Date
Remi Collet
cc1499e798 v10.5.20
(cherry picked from commit 51de57045c)
2024-04-24 11:14:37 +02:00
Remi Collet
92ad00fcee v10.5.19
(cherry picked from commit 154c56a7fa)
2024-04-18 07:48:23 +02:00
Remi Collet
b2a7448987 v10.5.18
(cherry picked from commit 517c87f736)
(cherry picked from commit 138ac32d87)
2024-04-16 08:27:18 +02:00
Remi Collet
31d2914c26 v10.5.16
(cherry picked from commit 9f944b5c1e)
2024-03-28 14:41:43 +01:00
Remi Collet
07cb38c5cb v10.5.15
(cherry picked from commit 0d569131e2)
2024-03-22 07:54:39 +01:00
Remi Collet
6b5024c707 v10.5.14
(cherry picked from commit cdd722631a)
2024-03-21 10:38:28 +01:00
Remi Collet
c4f13ac4f9 v10.5.13
(cherry picked from commit 61e14d3d1b)
2024-03-13 09:14:08 +01:00
Remi Collet
10aa148936 v10.5.12
(cherry picked from commit e45af72de8)
2024-03-12 07:48:05 +01:00
Remi Collet
b2dc67f7fa v10.5.11
(cherry picked from commit ad9d518c2a)
2024-02-26 10:17:28 +01:00
Remi Collet
134ae42f90 v10.5.10
(cherry picked from commit 324c09a8f8)
2024-02-05 09:50:58 +01:00
Remi Collet
b935b5d92f v10.5.9
(cherry picked from commit cc25f2d20f)
(cherry picked from commit 95ea87c415)
2024-01-23 07:55:44 +01:00
Remi Collet
29219d229a v10.5.8
(cherry picked from commit 7cea090376)
2024-01-19 09:59:04 +01:00
Remi Collet
0f53518d4d v10.5.7
(cherry picked from commit 07621175b5)
2024-01-15 07:48:31 +01:00
Remi Collet
8662337261 v10.5.5
(cherry picked from commit 70974452dd)
2024-01-02 07:57:13 +01:00
Remi Collet
5cc0813956 v10.5.3
(cherry picked from commit b6938f028a)
2023-12-13 09:41:20 +01:00
Remi Collet
634413a98c v10.5.2
(cherry picked from commit 2ebeb5410a)
2023-12-06 09:38:00 +01:00
Remi Collet
5886188eb2 v10.5.1
(cherry picked from commit 8c8dd2ef02)
2023-12-04 10:47:49 +01:00
Remi Collet
8632c06be0 update to 10.5.0
provide phpunit command

(cherry picked from commit 5edbe5c4e6)
2023-12-01 10:34:40 +01:00
Remi Collet
66a09b5b31 v10.4.2
(cherry picked from commit c566369646)
2023-10-26 10:59:59 +02:00
Remi Collet
7fc3e52ca7 v10.4.1
(cherry picked from commit d6510f45d6)
2023-10-10 11:22:40 +02:00
Remi Collet
c69d7daf96 v10.4.0
(cherry picked from commit 776c0a6304)
2023-10-06 07:41:41 +02:00
Remi Collet
aa9045753b update to 10.3.5
raise dependency on sebastian/exporter 5

(cherry picked from commit dcef424192)
2023-09-19 10:12:44 +02:00
Remi Collet
db1907614f update to 10.3.4
raise dependency on phpunit/php-code-coverage 10.1.5

(cherry picked from commit 2409e6df90)
2023-09-13 09:28:02 +02:00
Remi Collet
a3fd81f54e v10.3.3
(cherry picked from commit f72196a2be)
2023-09-05 08:46:16 +02:00
Remi Collet
524a2d5bca v10.3.2
(cherry picked from commit 5f34fd9742)
2023-08-21 11:29:13 +02:00
4 changed files with 91 additions and 274 deletions

31
.gitignore vendored
View file

@ -27,34 +27,3 @@
/phpunit10-10.5.18-835df17.tgz
/phpunit10-10.5.19-c726f0d.tgz
/phpunit10-10.5.20-547d314.tgz
/phpunit10-10.5.24-5f124e3.tgz
/phpunit10-10.5.25-831bf82.tgz
/phpunit10-10.5.26-42e2f13.tgz
/phpunit10-10.5.27-2425f71.tgz
/phpunit10-10.5.28-ff7fb85.tgz
/phpunit10-10.5.29-8e9e808.tgz
/phpunit10-10.5.30-b15524f.tgz
/phpunit10-10.5.31-43e7c3e.tgz
/phpunit10-10.5.32-f069f46.tgz
/phpunit10-10.5.33-4def7a9.tgz
/phpunit10-10.5.34-3c69d31.tgz
/phpunit10-10.5.35-7ac8b4e.tgz
/phpunit10-10.5.36-aa0a8ce.tgz
/phpunit10-10.5.37-c7cffa0.tgz
/phpunit10-10.5.38-a86773b.tgz
/phpunit10-10.5.39-4e89eff.tgz
/phpunit10-10.5.40-e6ddda9.tgz
/phpunit10-10.5.41-e76586f.tgz
/phpunit10-10.5.42-a9336f4.tgz
/phpunit10-10.5.43-fb117a8.tgz
/phpunit10-10.5.44-1381c62.tgz
/phpunit10-10.5.45-bd68a78.tgz
/phpunit10-10.5.46-8080be3.tgz
/phpunit10-10.5.47-3637b3e.tgz
/phpunit10-10.5.48-6e0a2bc.tgz
/phpunit10-10.5.53-3276847.tgz
/phpunit10-10.5.54-b1dbbaa.tgz
/phpunit10-10.5.55-4b2d546.tgz
/phpunit10-10.5.57-8e7598b.tgz
/phpunit10-10.5.58-e24fb46.tgz
/phpunit10-10.5.59-c47fe00.tgz

View file

@ -1,6 +1,6 @@
diff -up ./phpunit.rpm ./phpunit
--- ./phpunit.rpm 2024-10-28 16:44:45.000000000 +0100
+++ ./phpunit 2024-10-28 16:48:36.313661416 +0100
--- ./phpunit.rpm 2024-03-21 10:34:01.000000000 +0100
+++ ./phpunit 2024-03-21 14:02:24.892294049 +0100
@@ -46,27 +46,13 @@ if (isset($GLOBALS['_composer_autoload_p
define('PHPUNIT_COMPOSER_INSTALL', $GLOBALS['_composer_autoload_path']);
@ -50,23 +50,18 @@ diff -up ./phpunit.rpm ./phpunit
+ PHPUnit\TextUI\Command::main();
+}
diff -up ./src/TextUI/Command/Commands/VersionCheckCommand.php.rpm ./src/TextUI/Command/Commands/VersionCheckCommand.php
--- ./src/TextUI/Command/Commands/VersionCheckCommand.php.rpm 2024-10-28 16:44:45.000000000 +0100
+++ ./src/TextUI/Command/Commands/VersionCheckCommand.php 2024-10-28 17:08:20.070934441 +0100
@@ -39,7 +39,7 @@ final class VersionCheckCommand implemen
--- ./src/TextUI/Command/Commands/VersionCheckCommand.php.rpm 2024-03-21 10:34:01.000000000 +0100
+++ ./src/TextUI/Command/Commands/VersionCheckCommand.php 2024-03-21 14:02:53.539493026 +0100
@@ -24,7 +24,7 @@ final class VersionCheckCommand implemen
public function execute(): Result
{
$latestVersion = file_get_contents('https://phar.phpunit.de/latest-version-of/phpunit');
- $latestCompatibleVersion = file_get_contents('https://phar.phpunit.de/latest-version-of/phpunit-' . Version::majorVersionNumber());
+ $latestCompatibleVersion = file_get_contents('https://phar.phpunit.de/latest-version-of/phpunit-' . $major=Version::majorVersionNumber());
assert($latestVersion !== false);
- $latestCompatibleVersion = $this->downloader->download('https://phar.phpunit.de/latest-version-of/phpunit-' . $this->majorVersionNumber);
+ $latestCompatibleVersion = $this->downloader->download('https://phar.phpunit.de/latest-version-of/phpunit-' . $major=$this->majorVersionNumber);
assert($latestCompatibleVersion !== false);
@@ -48,11 +48,11 @@ final class VersionCheckCommand implemen
if (!$notLatest && !$notLatestCompatible) {
return Result::from(
- 'You are using the latest version of PHPUnit.' . PHP_EOL,
+ 'You are using the latest version of PHPUnit.' . PHP_EOL . PHP_EOL,
$notLatest = version_compare($latestVersion, Version::id(), '>');
$notLatestCompatible = version_compare($latestCompatibleVersion, Version::id(), '>');
@@ -35,7 +35,7 @@ final class VersionCheckCommand implemen
);
}
@ -75,28 +70,26 @@ diff -up ./src/TextUI/Command/Commands/VersionCheckCommand.php.rpm ./src/TextUI/
if ($notLatestCompatible) {
$buffer .= sprintf(
@@ -60,6 +60,7 @@ final class VersionCheckCommand implemen
$this->versionId,
@@ -43,6 +43,7 @@ final class VersionCheckCommand implemen
Version::id(),
$latestCompatibleVersion,
);
+ $buffer .= sprintf('Try a system update for new phpunit%s package.' . PHP_EOL . PHP_EOL, $major);
}
if ($notLatest) {
@@ -67,6 +68,9 @@ final class VersionCheckCommand implemen
@@ -50,6 +51,7 @@ final class VersionCheckCommand implemen
'The latest version is PHPUnit %s.' . PHP_EOL,
$latestVersion,
);
+ if ($major !== ($new = (int)explode('.', $latestVersion)[0])) {
+ $buffer .= sprintf('Try to install and use the phpunit%s command.' . PHP_EOL . PHP_EOL, explode('.', $latestVersion)[0]);
+ }
+ $buffer .= sprintf('Try to install and use the phpunit%s command.' . PHP_EOL . PHP_EOL, explode('.', $latestVersion)[0]);
}
return Result::from($buffer);
diff -up ./src/TextUI/Configuration/Xml/SchemaFinder.php.rpm ./src/TextUI/Configuration/Xml/SchemaFinder.php
--- ./src/TextUI/Configuration/Xml/SchemaFinder.php.rpm 2024-10-28 16:44:45.000000000 +0100
+++ ./src/TextUI/Configuration/Xml/SchemaFinder.php 2024-10-28 16:48:35.645635304 +0100
@@ -77,6 +77,6 @@ final class SchemaFinder
--- ./src/TextUI/Configuration/Xml/SchemaFinder.php.rpm 2024-03-21 10:34:01.000000000 +0100
+++ ./src/TextUI/Configuration/Xml/SchemaFinder.php 2024-03-21 14:02:24.893294091 +0100
@@ -75,6 +75,6 @@ final class SchemaFinder
return __PHPUNIT_PHAR_ROOT__ . '/';
}
@ -105,8 +98,8 @@ diff -up ./src/TextUI/Configuration/Xml/SchemaFinder.php.rpm ./src/TextUI/Config
}
}
diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
--- ./tests/bootstrap.php.rpm 2024-10-28 16:44:45.000000000 +0100
+++ ./tests/bootstrap.php 2024-10-28 16:48:36.312661377 +0100
--- ./tests/bootstrap.php.rpm 2024-03-21 10:34:01.000000000 +0100
+++ ./tests/bootstrap.php 2024-03-21 14:02:24.893294091 +0100
@@ -11,8 +11,8 @@ if (!defined('TEST_FILES_PATH')) {
define('TEST_FILES_PATH', __DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR);
}
@ -136,39 +129,3 @@ diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
}
if ($phar) {
diff -up ./tests/unit/TextUI/Command/Commands/VersionCheckCommandTest.php.rpm ./tests/unit/TextUI/Command/Commands/VersionCheckCommandTest.php
--- ./tests/unit/TextUI/Command/Commands/VersionCheckCommandTest.php.rpm 2024-10-28 16:44:45.000000000 +0100
+++ ./tests/unit/TextUI/Command/Commands/VersionCheckCommandTest.php 2024-10-28 17:05:46.654936571 +0100
@@ -28,15 +28,16 @@ final class VersionCheckCommandTest exte
{
return [
[
- 'You are using the latest version of PHPUnit.' . PHP_EOL,
+ 'You are using the latest version of PHPUnit.' . PHP_EOL . PHP_EOL,
10,
'10.5.0',
'10.5.0',
'10.5.0',
],
[
- 'You are not using the latest version of PHPUnit.' . PHP_EOL .
+ 'You are not using the latest version of PHPUnit.' . PHP_EOL . PHP_EOL .
'The latest version compatible with PHPUnit 10.5.0 is PHPUnit 10.5.1.' . PHP_EOL .
+ 'Try a system update for new phpunit10 package.' . PHP_EOL . PHP_EOL .
'The latest version is PHPUnit 10.5.1.' . PHP_EOL,
10,
'10.5.0',
@@ -44,9 +45,11 @@ final class VersionCheckCommandTest exte
'10.5.1',
],
[
- 'You are not using the latest version of PHPUnit.' . PHP_EOL .
+ 'You are not using the latest version of PHPUnit.' . PHP_EOL . PHP_EOL .
'The latest version compatible with PHPUnit 10.5.0 is PHPUnit 10.5.1.' . PHP_EOL .
- 'The latest version is PHPUnit 11.0.0.' . PHP_EOL,
+ 'Try a system update for new phpunit10 package.' . PHP_EOL . PHP_EOL .
+ 'The latest version is PHPUnit 11.0.0.' . PHP_EOL .
+ 'Try to install and use the phpunit11 command.' . PHP_EOL . PHP_EOL,
10,
'10.5.0',
'11.0.0',

View file

@ -1,8 +1,9 @@
# remirepo/fedora spec file for phpunit10
#
# SPDX-FileCopyrightText: Copyright 2010-2025 Remi Collet
# SPDX-License-Identifier: CECILL-2.1
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
# Copyright (c) 2010-2024 Remi Collet
#
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
@ -10,14 +11,14 @@
%bcond_without tests
%if 0%{?fedora} == 39 || 0%{?fedora} == 40
%if 0%{?fedora} == 39
%bcond_without defcmd
%else
%bcond_with defcmd
%endif
%global gh_commit c47fe00df06fb1f68399ef7386edb01c25132473
%global gh_date 2025-12-01
%global gh_commit 547d314dc24ec1e177720d45c6263fb226cc2ae3
%global gh_date 2024-04-24
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner sebastianbergmann
%global gh_project phpunit
@ -30,7 +31,7 @@
%global ver_major 10
%global ver_minor 5
%global upstream_version 10.5.59
%global upstream_version 10.5.20
#global upstream_prever dev
Name: %{pk_project}%{ver_major}
@ -49,25 +50,25 @@ Patch0: %{name}-rpm.patch
BuildArch: noarch
BuildRequires: php(language) >= 8.1
BuildRequires: (php-composer(myclabs/deep-copy) >= 1.13.4 with php-composer(myclabs/deep-copy) < 2)
BuildRequires: (php-composer(phar-io/manifest) >= 2.0.4 with php-composer(phar-io/manifest) < 3)
BuildRequires: (php-composer(phar-io/version) >= 3.2.1 with php-composer(phar-io/version) < 4)
BuildRequires: (php-composer(phpunit/php-code-coverage) >= 10.1.15 with php-composer(phpunit/php-code-coverage) < 11)
BuildRequires: (php-composer(phpunit/php-file-iterator) >= 4.1.0 with php-composer(phpunit/php-file-iterator) < 5)
BuildRequires: (php-composer(myclabs/deep-copy) >= 1.10.1 with php-composer(myclabs/deep-copy) < 2)
BuildRequires: (php-composer(phar-io/manifest) >= 2.0.3 with php-composer(phar-io/manifest) < 3)
BuildRequires: (php-composer(phar-io/version) >= 3.0.2 with php-composer(phar-io/version) < 4)
BuildRequires: (php-composer(phpunit/php-code-coverage) >= 10.1.5 with php-composer(phpunit/php-code-coverage) < 11)
BuildRequires: (php-composer(phpunit/php-file-iterator) >= 4.0 with php-composer(phpunit/php-file-iterator) < 5)
BuildRequires: (php-composer(phpunit/php-invoker) >= 4.0 with php-composer(phpunit/php-invoker) < 5)
BuildRequires: (php-composer(phpunit/php-text-template) >= 3.0.1 with php-composer(phpunit/php-text-template) < 4)
BuildRequires: (php-composer(phpunit/php-text-template) >= 3.0 with php-composer(phpunit/php-text-template) < 4)
BuildRequires: (php-composer(phpunit/php-timer) >= 6.0 with php-composer(phpunit/php-timer) < 7)
BuildRequires: (php-composer(sebastian/cli-parser) >= 2.0.1 with php-composer(sebastian/cli-parser) < 3)
BuildRequires: (php-composer(sebastian/cli-parser) >= 2.0 with php-composer(sebastian/cli-parser) < 3)
BuildRequires: (php-composer(sebastian/code-unit) >= 2.0 with php-composer(sebastian/code-unit) < 3)
BuildRequires: (php-composer(sebastian/comparator) >= 5.0.4 with php-composer(sebastian/comparator) < 6)
BuildRequires: (php-composer(sebastian/diff) >= 5.1.1 with php-composer(sebastian/diff) < 6)
BuildRequires: (php-composer(sebastian/environment) >= 6.1.0 with php-composer(sebastian/environment) < 7)
BuildRequires: (php-composer(sebastian/exporter) >= 5.1.4 with php-composer(sebastian/exporter) < 6)
BuildRequires: (php-composer(sebastian/global-state) >= 6.0.2 with php-composer(sebastian/global-state) < 7)
BuildRequires: (php-composer(sebastian/comparator) >= 5.0 with php-composer(sebastian/comparator) < 6)
BuildRequires: (php-composer(sebastian/diff) >= 5.0 with php-composer(sebastian/diff) < 6)
BuildRequires: (php-composer(sebastian/environment) >= 6.0 with php-composer(sebastian/environment) < 7)
BuildRequires: (php-composer(sebastian/exporter) >= 5.1 with php-composer(sebastian/exporter) < 6)
BuildRequires: (php-composer(sebastian/global-state) >= 6.0.1 with php-composer(sebastian/global-state) < 7)
BuildRequires: (php-composer(sebastian/object-enumerator) >= 5.0 with php-composer(sebastian/object-enumerator) < 6)
BuildRequires: (php-composer(sebastian/recursion-context) >= 5.0.1 with php-composer(sebastian/recursion-context) < 6)
BuildRequires: (php-composer(sebastian/recursion-context) >= 5.0 with php-composer(sebastian/recursion-context) < 6)
BuildRequires: (php-composer(sebastian/type) >= 4.0 with php-composer(sebastian/type) < 5)
BuildRequires: (php-composer(sebastian/version) >= 4.0.1 with php-composer(sebastian/version) < 5)
BuildRequires: (php-composer(sebastian/version) >= 4.0 with php-composer(sebastian/version) < 5)
BuildRequires: php-dom
BuildRequires: php-json
BuildRequires: php-mbstring
@ -85,25 +86,25 @@ BuildRequires: php-fedora-autoloader-devel >= 1.0.0
# "ext-mbstring": "*",
# "ext-xml": "*",
# "ext-xmlwriter": "*",
# "myclabs/deep-copy": "^1.13.4",
# "phar-io/manifest": "^2.0.4",
# "phar-io/version": "^3.2.1",
# "phpunit/php-code-coverage": "^10.1.15",
# "phpunit/php-file-iterator": "^4.1.0",
# "phpunit/php-invoker": "^4.0.0",
# "phpunit/php-text-template": "^3.0.1",
# "phpunit/php-timer": "^6.0.0",
# "sebastian/cli-parser": "^2.0.1",
# "sebastian/code-unit": "^2.0.0",
# "sebastian/comparator": "^5.0.4",
# "sebastian/diff": "^5.1.1",
# "sebastian/environment": "^6.1.0",
# "sebastian/exporter": "^5.1.4",
# "sebastian/global-state": "^6.0.2",
# "sebastian/object-enumerator": "^5.0.0",
# "sebastian/recursion-context": "^5.0.1",
# "sebastian/type": "^4.0.0",
# "sebastian/version": "^4.0.1"
# "myclabs/deep-copy": "^1.10.1",
# "phar-io/manifest": "^2.0.3",
# "phar-io/version": "^3.0.2",
# "phpunit/php-code-coverage": "^10.1.5",
# "phpunit/php-file-iterator": "^4.0",
# "phpunit/php-invoker": "^4.0",
# "phpunit/php-text-template": "^3.0",
# "phpunit/php-timer": "^6.0",
# "sebastian/cli-parser": "^2.0",
# "sebastian/code-unit": "^2.0",
# "sebastian/comparator": "^5.0",
# "sebastian/diff": "^5.0",
# "sebastian/environment": "^6.0",
# "sebastian/exporter": "^5.1",
# "sebastian/global-state": "^6.0.1",
# "sebastian/object-enumerator": "^5.0",
# "sebastian/recursion-context": "^5.0",
# "sebastian/type": "^4.0",
# "sebastian/version": "^4.0"
Requires: php(language) >= 8.1
Requires: php-cli
Requires: php-dom
@ -112,37 +113,42 @@ Requires: php-libxml
Requires: php-mbstring
Requires: php-xml
Requires: php-xmlwriter
Requires: (php-composer(myclabs/deep-copy) >= 1.13.4 with php-composer(myclabs/deep-copy) < 2)
Requires: (php-composer(phar-io/manifest) >= 2.0.4 with php-composer(phar-io/manifest) < 3)
Requires: (php-composer(phar-io/version) >= 3.2.1 with php-composer(phar-io/version) < 4)
Requires: (php-composer(phpunit/php-code-coverage) >= 10.1.15 with php-composer(phpunit/php-code-coverage) < 11)
Requires: (php-composer(phpunit/php-file-iterator) >= 4.1.0 with php-composer(phpunit/php-file-iterator) < 5)
Requires: (php-composer(myclabs/deep-copy) >= 1.10.1 with php-composer(myclabs/deep-copy) < 2)
Requires: (php-composer(phar-io/manifest) >= 2.0.3 with php-composer(phar-io/manifest) < 3)
Requires: (php-composer(phar-io/version) >= 3.0.2 with php-composer(phar-io/version) < 4)
Requires: (php-composer(phpunit/php-code-coverage) >= 10.1.5 with php-composer(phpunit/php-code-coverage) < 11)
Requires: (php-composer(phpunit/php-file-iterator) >= 4.0 with php-composer(phpunit/php-file-iterator) < 5)
Requires: (php-composer(phpunit/php-invoker) >= 4.0 with php-composer(phpunit/php-invoker) < 5)
Requires: (php-composer(phpunit/php-text-template) >= 3.0.1 with php-composer(phpunit/php-text-template) < 4)
Requires: (php-composer(phpunit/php-text-template) >= 3.0 with php-composer(phpunit/php-text-template) < 4)
Requires: (php-composer(phpunit/php-timer) >= 6.0 with php-composer(phpunit/php-timer) < 7)
Requires: (php-composer(sebastian/cli-parser) >= 2.0.1 with php-composer(sebastian/cli-parser) < 3)
Requires: (php-composer(sebastian/cli-parser) >= 2.0 with php-composer(sebastian/cli-parser) < 3)
Requires: (php-composer(sebastian/code-unit) >= 2.0 with php-composer(sebastian/code-unit) < 3)
Requires: (php-composer(sebastian/comparator) >= 5.0.4 with php-composer(sebastian/comparator) < 6)
Requires: (php-composer(sebastian/diff) >= 5.1.1 with php-composer(sebastian/diff) < 6)
Requires: (php-composer(sebastian/environment) >= 6.1.0 with php-composer(sebastian/environment) < 7)
Requires: (php-composer(sebastian/exporter) >= 5.1.4 with php-composer(sebastian/exporter) < 6)
Requires: (php-composer(sebastian/global-state) >= 6.0.2 with php-composer(sebastian/global-state) < 7)
Requires: (php-composer(sebastian/comparator) >= 5.0 with php-composer(sebastian/comparator) < 6)
Requires: (php-composer(sebastian/diff) >= 5.0 with php-composer(sebastian/diff) < 6)
Requires: (php-composer(sebastian/environment) >= 6.0 with php-composer(sebastian/environment) < 7)
Requires: (php-composer(sebastian/exporter) >= 5.1 with php-composer(sebastian/exporter) < 6)
Requires: (php-composer(sebastian/global-state) >= 6.0.1 with php-composer(sebastian/global-state) < 7)
Requires: (php-composer(sebastian/object-enumerator) >= 5.0 with php-composer(sebastian/object-enumerator) < 6)
Requires: (php-composer(sebastian/recursion-context) >= 5.0.1 with php-composer(sebastian/recursion-context) < 6)
Requires: (php-composer(sebastian/recursion-context) >= 5.0 with php-composer(sebastian/recursion-context) < 6)
Requires: (php-composer(sebastian/type) >= 4.0 with php-composer(sebastian/type) < 5)
Requires: (php-composer(sebastian/version) >= 4.0.1 with php-composer(sebastian/version) < 5)
Requires: (php-composer(sebastian/version) >= 4.0 with php-composer(sebastian/version) < 5)
# From composer.json, "suggest": {
# "ext-soap": "*",
Suggests: php-soap
# recommends latest versions
# Fedora 38+ only until 8.1 EOL
%if 0%{?fedora} >= 38
Recommends: phpunit11
Recommends: phpunit12
%endif
# Autoloader
Requires: php-composer(fedora/autoloader)
# From phpcompatinfo report for version 10.0.0
Requires: php-reflection
Requires: php-openssl
Requires: php-pcntl
Requires: php-pcre
Requires: php-phar
Requires: php-spl
%if 0%{?fedora} >= 39 || 0%{?rhel} >= 10
Provides: php-composer(phpunit/phpunit) = %{version}
@ -157,7 +163,7 @@ It is an instance of the xUnit architecture for unit testing frameworks.
This package provides the version %{ver_major} of PHPUnit,
available using the %{name} command.
Documentation: https://phpunit.de/documentation.html
Documentation: https://phpunit.readthedocs.io/
%prep
@ -206,19 +212,18 @@ cat src/autoload.php
%{_bindir}/phpab \
--output tests/autoload.php \
tests/_files
--exclude 'tests/end-to-end/regression/4376/tests/Test.php' \
--exclude 'tests/end-to-end/regression/2448/Test.php' \
--exclude 'tests/*/_files/*.php' \
tests
cat << 'EOF' | tee -a tests/autoload.php
// Dependencies
\Fedora\Autoloader\Dependencies::required([
__DIR__ . '/unit/Event/AbstractEventTestCase.php',
__DIR__ . '/unit/Framework/MockObject/TestDoubleTestCase.php',
__DIR__ . '/unit/Metadata/Parser/AnnotationParserTestCase.php',
__DIR__ . '/unit/Metadata/Parser/AttributeParserTestCase.php',
__DIR__ . '/_files/CoverageNamespacedFunctionTest.php',
__DIR__ . '/_files/CoveredFunction.php',
__DIR__ . '/_files/Generator.php',
__DIR__ . '/_files/NamespaceCoveredFunction.php',
__DIR__ . '/end-to-end/code-coverage/ignore-function-using-attribute/src/CoveredFunction.php',
__DIR__ . '/end-to-end/execution-order/_files/MultiDependencyTest.php',
]);
EOF
@ -244,7 +249,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 php81 php82 php83 php84 php85; do
for cmd in php php81 php82 php83; do
if which $cmd; then
$cmd ./phpunit $OPT || ret=1
fi
@ -265,114 +270,6 @@ exit $ret
%changelog
* Tue Dec 2 2025 Remi Collet <remi@remirepo.net> - 10.5.59-1
- update to 10.5.59
* Mon Sep 29 2025 Remi Collet <remi@remirepo.net> - 10.5.58-1
- update to 10.5.58
* Wed Sep 24 2025 Remi Collet <remi@remirepo.net> - 10.5.57-1
- update to 10.5.57 (no change)
- raise dependency on sebastian/exporter 5.1.4
* Mon Sep 15 2025 Remi Collet <remi@remirepo.net> - 10.5.55-1
- update to 10.5.55
- raise dependency on sebastian/comparator 5.0.4
* Thu Sep 11 2025 Remi Collet <remi@remirepo.net> - 10.5.54-1
- update to 10.5.54
* Wed Aug 20 2025 Remi Collet <remi@remirepo.net> - 10.5.53-1
- update to 10.5.53
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 10.5.48-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri Jul 11 2025 Remi Collet <remi@remirepo.net> - 10.5.48-1
- update to 10.5.48
- raise dependency on myclabs/deep-copy 1.13.3
* Sat Jun 21 2025 Remi Collet <remi@remirepo.net> - 10.5.47-1
- update to 10.5.47
* Sun May 4 2025 Remi Collet <remi@remirepo.net> - 10.5.46-1
- update to 10.5.46
- raise dependency on myclabs/deep-copy 1.13.1
* Fri Feb 7 2025 Remi Collet <remi@remirepo.net> - 10.5.45-1
- update to 10.5.45
* Fri Jan 31 2025 Remi Collet <remi@remirepo.net> - 10.5.44-1
- update to 10.5.44
* Wed Jan 29 2025 Remi Collet <remi@remirepo.net> - 10.5.43-1
- update to 10.5.43
* Wed Jan 29 2025 Remi Collet <remi@remirepo.net> - 10.5.42-1
- update to 10.5.42
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 10.5.41-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Mon Jan 13 2025 Remi Collet <remi@remirepo.net> - 10.5.41-1
- update to 10.5.41
* Sun Dec 22 2024 Remi Collet <remi@remirepo.net> - 10.5.40-1
- update to 10.5.40
* Wed Dec 11 2024 Remi Collet <remi@remirepo.net> - 10.5.39-1
- update to 10.5.39
- raise dependency on myclabs/deep-copy 1.12.1
- re-license spec file to CECILL-2.1
* Mon Oct 28 2024 Remi Collet <remi@remirepo.net> - 10.5.38-1
- update to 10.5.38
* Mon Oct 21 2024 Remi Collet <remi@remirepo.net> - 10.5.37-1
- update to 10.5.37
- raise dependency on sebastian/comparator 5.0.3
* Wed Oct 9 2024 Remi Collet <remi@remirepo.net> - 10.5.36-1
- update to 10.5.36
* Thu Sep 19 2024 Remi Collet <remi@remirepo.net> - 10.5.35-1
- update to 10.5.35
* Fri Sep 13 2024 Remi Collet <remi@remirepo.net> - 10.5.34-1
- update to 10.5.34
* Mon Sep 9 2024 Remi Collet <remi@remirepo.net> - 10.5.33-1
- update to 10.5.33
* Thu Sep 5 2024 Remi Collet <remi@remirepo.net> - 10.5.32-1
- update to 10.5.32
* Tue Sep 3 2024 Remi Collet <remi@remirepo.net> - 10.5.31-1
- update to 10.5.31
* Tue Aug 13 2024 Remi Collet <remi@remirepo.net> - 10.5.30-1
- update to 10.5.30
- raise dependency on sebastian/comparator 5.0.2
* Tue Jul 30 2024 Remi Collet <remi@remirepo.net> - 10.5.29-1
- update to 10.5.29
* Fri Jul 19 2024 Remi Collet <remi@remirepo.net> - 10.5.28-1
- update to 10.5.28
* Thu Jul 11 2024 Remi Collet <remi@remirepo.net> - 10.5.27-1
- update to 10.5.27 (no change)
- raise dependencies
* Mon Jul 8 2024 Remi Collet <remi@remirepo.net> - 10.5.26-1
- update to 10.5.26
* Wed Jul 3 2024 Remi Collet <remi@remirepo.net> - 10.5.25-1
- update to 10.5.25 (no change)
* Tue Jul 2 2024 Remi Collet <remi@remirepo.net> - 10.5.24-1
- update to 10.5.24
* Wed Apr 24 2024 Remi Collet <remi@remirepo.net> - 10.5.20-1
- update to 10.5.20
@ -382,9 +279,6 @@ exit $ret
* Mon Apr 15 2024 Remi Collet <remi@remirepo.net> - 10.5.18-1
- update to 10.5.18
* Fri Apr 5 2024 Remi Collet <remi@remirepo.net> - 10.5.17-1
- update to 10.5.17
* Thu Mar 28 2024 Remi Collet <remi@remirepo.net> - 10.5.16-1
- update to 10.5.16
@ -409,9 +303,6 @@ exit $ret
* Tue Jan 23 2024 Remi Collet <remi@remirepo.net> - 10.5.9-1
- update to 10.5.9
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 10.5.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Remi Collet <remi@remirepo.net> - 10.5.8-1
- update to 10.5.8

View file

@ -1 +1 @@
SHA512 (phpunit10-10.5.59-c47fe00.tgz) = 5d10a528b224c59760c8a5d9493ce84d460d8123839c6622d6c5afa613554016b4d7a603d0fa9f2560df9d01f5c004c3d7a97e17d48e63702a31ca5db9cffe43
SHA512 (phpunit10-10.5.20-547d314.tgz) = 49366edfde85452b203e63a8463613386a7015e9e3a57a524cd97ae536dd6003183057818e52aa4058dd874c7a9e66657db7e437ab6e692150921faa6a4ec978