Compare commits
25 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fc3967606 | ||
|
|
c64d4ce7cb | ||
|
|
21f4ab160e | ||
|
|
75b7060174 | ||
|
|
31b650ba5a | ||
|
|
da0796700c | ||
|
|
25496cdb56 | ||
|
|
537957f677 | ||
|
|
81ce1b998e | ||
|
|
93fa3e6c5c | ||
|
|
b6e3d8a768 | ||
|
|
34abecc4be | ||
|
|
a8d2f2d3b0 | ||
|
|
68d99b7865 | ||
|
|
ea1bb05035 | ||
|
|
4c7db7f4da | ||
|
|
138ac32d87 | ||
|
|
2eab6bd645 | ||
|
|
c64e74625b | ||
|
|
bbbef09cb5 | ||
|
|
a8a871637f | ||
|
|
19924dcaa2 | ||
|
|
d5d5e96dc4 | ||
|
|
9d546b6363 | ||
|
|
95ea87c415 |
5 changed files with 252 additions and 64 deletions
27
.gitignore
vendored
27
.gitignore
vendored
|
|
@ -15,3 +15,30 @@
|
|||
/phpunit10-10.5.5-ed21115.tgz
|
||||
/phpunit10-10.5.7-e5c5b39.tgz
|
||||
/phpunit10-10.5.8-08f4fa7.tgz
|
||||
/phpunit10-10.5.9-0bd6637.tgz
|
||||
/phpunit10-10.5.10-50b8e31.tgz
|
||||
/phpunit10-10.5.11-0d968f6.tgz
|
||||
/phpunit10-10.5.12-41a9886.tgz
|
||||
/phpunit10-10.5.13-20a63fc.tgz
|
||||
/phpunit10-10.5.14-4cf8824.tgz
|
||||
/phpunit10-10.5.15-86376e0.tgz
|
||||
/phpunit10-10.5.16-18f8d4a.tgz
|
||||
/phpunit10-10.5.17-c1f736a.tgz
|
||||
/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
|
||||
|
|
|
|||
|
|
@ -5,10 +5,12 @@ DATE=$(sed -n '/^%global gh_date/{s/.* //;p}' $NAME.spec)
|
|||
OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec)
|
||||
PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec)
|
||||
VERSION=$(sed -n '/^%global upstream_version/{s/.* //;p}' $NAME.spec)
|
||||
MAJOR=$(sed -n '/^%global ver_major/{s/.* //;p}' $NAME.spec)
|
||||
MINOR=$(sed -n '/^%global ver_minor/{s/.* //;p}' $NAME.spec)
|
||||
COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec)
|
||||
SHORT=${COMMIT:0:7}
|
||||
|
||||
DATE=$(date -d "$DATE -4 days" +%Y-%m-%d)
|
||||
DATE=$(date -d "$DATE -1 week" +%Y-%m-%d)
|
||||
|
||||
if [ -f $NAME-$VERSION-$SHORT.tgz ]; then
|
||||
echo "$NAME-$VERSION-$SHORT.tgz already there"
|
||||
|
|
@ -17,11 +19,11 @@ else
|
|||
|
||||
echo "Cloning..."
|
||||
rm -rf $PROJECT-$COMMIT
|
||||
git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1
|
||||
git clone --branch $MAJOR.$MINOR --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1
|
||||
|
||||
echo "Getting commit..."
|
||||
pushd $PROJECT-$COMMIT
|
||||
git checkout $COMMIT || exit1
|
||||
git checkout $COMMIT || exit 1
|
||||
cp composer.json ../composer.json
|
||||
popd
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
diff -up ./phpunit.rpm ./phpunit
|
||||
--- ./phpunit.rpm 2024-01-15 07:31:36.850034357 +0100
|
||||
+++ ./phpunit 2024-01-15 07:33:02.306130486 +0100
|
||||
--- ./phpunit.rpm 2024-10-28 16:44:45.000000000 +0100
|
||||
+++ ./phpunit 2024-10-28 16:48:36.313661416 +0100
|
||||
@@ -46,27 +46,13 @@ if (isset($GLOBALS['_composer_autoload_p
|
||||
define('PHPUNIT_COMPOSER_INSTALL', $GLOBALS['_composer_autoload_path']);
|
||||
|
||||
|
|
@ -49,10 +49,54 @@ diff -up ./phpunit.rpm ./phpunit
|
|||
+ // PHPUnit v6 to v9
|
||||
+ 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
|
||||
|
||||
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,
|
||||
);
|
||||
}
|
||||
|
||||
- $buffer = 'You are not using the latest version of PHPUnit.' . PHP_EOL;
|
||||
+ $buffer = 'You are not using the latest version of PHPUnit.' . PHP_EOL . PHP_EOL;
|
||||
|
||||
if ($notLatestCompatible) {
|
||||
$buffer .= sprintf(
|
||||
@@ -60,6 +60,7 @@ final class VersionCheckCommand implemen
|
||||
$this->versionId,
|
||||
$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
|
||||
'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]);
|
||||
+ }
|
||||
}
|
||||
|
||||
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-01-15 07:25:40.000000000 +0100
|
||||
+++ ./src/TextUI/Configuration/Xml/SchemaFinder.php 2024-01-15 07:31:36.850034357 +0100
|
||||
@@ -48,6 +48,6 @@ final class SchemaFinder
|
||||
--- ./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
|
||||
return __PHPUNIT_PHAR_ROOT__ . '/';
|
||||
}
|
||||
|
||||
|
|
@ -61,8 +105,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-01-15 07:25:39.000000000 +0100
|
||||
+++ ./tests/bootstrap.php 2024-01-15 07:31:36.851034393 +0100
|
||||
--- ./tests/bootstrap.php.rpm 2024-10-28 16:44:45.000000000 +0100
|
||||
+++ ./tests/bootstrap.php 2024-10-28 16:48:36.312661377 +0100
|
||||
@@ -11,8 +11,8 @@ if (!defined('TEST_FILES_PATH')) {
|
||||
define('TEST_FILES_PATH', __DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR);
|
||||
}
|
||||
|
|
@ -92,3 +136,39 @@ 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',
|
||||
|
|
|
|||
185
phpunit10.spec
185
phpunit10.spec
|
|
@ -1,6 +1,6 @@
|
|||
# remirepo/fedora spec file for phpunit10
|
||||
#
|
||||
# Copyright (c) 2010-2023 Remi Collet
|
||||
# Copyright (c) 2010-2024 Remi Collet
|
||||
#
|
||||
# License: CC-BY-SA-4.0
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
|
@ -11,14 +11,14 @@
|
|||
|
||||
%bcond_without tests
|
||||
|
||||
%if 0%{?fedora} >= 39 || 0%{?rhel} >= 10
|
||||
%if 0%{?fedora} == 39
|
||||
%bcond_without defcmd
|
||||
%else
|
||||
%bcond_with defcmd
|
||||
%endif
|
||||
|
||||
%global gh_commit 08f4fa74d5fbfff1ef22abffee47aaedcaea227e
|
||||
%global gh_date 2024-01-19
|
||||
%global gh_commit a86773b9e887a67bc53efa9da9ad6e3f2498c132
|
||||
%global gh_date 2024-10-28
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner sebastianbergmann
|
||||
%global gh_project phpunit
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
%global ver_major 10
|
||||
%global ver_minor 5
|
||||
|
||||
%global upstream_version 10.5.8
|
||||
%global upstream_version 10.5.38
|
||||
#global upstream_prever dev
|
||||
|
||||
Name: %{pk_project}%{ver_major}
|
||||
|
|
@ -41,6 +41,7 @@ Summary: The PHP Unit Testing framework version %{ver_major}
|
|||
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/%{gh_owner}/%{gh_project}
|
||||
# run makesrc.sh to create a git snapshot with test suite
|
||||
Source0: %{name}-%{upstream_version}-%{gh_short}.tgz
|
||||
Source1: makesrc.sh
|
||||
|
||||
|
|
@ -49,25 +50,25 @@ Patch0: %{name}-rpm.patch
|
|||
|
||||
BuildArch: noarch
|
||||
BuildRequires: php(language) >= 8.1
|
||||
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(myclabs/deep-copy) >= 1.12.0 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(phpunit/php-invoker) >= 4.0 with php-composer(phpunit/php-invoker) < 5)
|
||||
BuildRequires: (php-composer(phpunit/php-text-template) >= 3.0 with php-composer(phpunit/php-text-template) < 4)
|
||||
BuildRequires: (php-composer(phpunit/php-text-template) >= 3.0.1 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 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 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/comparator) >= 5.0.3 with php-composer(sebastian/comparator) < 6)
|
||||
BuildRequires: (php-composer(sebastian/diff) >= 5.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 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/global-state) >= 6.0 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 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 with php-composer(sebastian/version) < 5)
|
||||
BuildRequires: (php-composer(sebastian/version) >= 4.0.1 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.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"
|
||||
# "myclabs/deep-copy": "^1.12.0",
|
||||
# "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.3",
|
||||
# "sebastian/diff": "^5.1.1",
|
||||
# "sebastian/environment": "^6.1.0",
|
||||
# "sebastian/exporter": "^5.1.2",
|
||||
# "sebastian/global-state": "^6.0.0",
|
||||
# "sebastian/object-enumerator": "^5.0.0",
|
||||
# "sebastian/recursion-context": "^5.0.0",
|
||||
# "sebastian/type": "^4.0.0",
|
||||
# "sebastian/version": "^4.0.1"
|
||||
Requires: php(language) >= 8.1
|
||||
Requires: php-cli
|
||||
Requires: php-dom
|
||||
|
|
@ -112,30 +113,33 @@ Requires: php-libxml
|
|||
Requires: php-mbstring
|
||||
Requires: php-xml
|
||||
Requires: php-xmlwriter
|
||||
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(myclabs/deep-copy) >= 1.12.0 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(phpunit/php-invoker) >= 4.0 with php-composer(phpunit/php-invoker) < 5)
|
||||
Requires: (php-composer(phpunit/php-text-template) >= 3.0 with php-composer(phpunit/php-text-template) < 4)
|
||||
Requires: (php-composer(phpunit/php-text-template) >= 3.0.1 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 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 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/comparator) >= 5.0.3 with php-composer(sebastian/comparator) < 6)
|
||||
Requires: (php-composer(sebastian/diff) >= 5.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 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/global-state) >= 6.0 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 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 with php-composer(sebastian/version) < 5)
|
||||
Requires: (php-composer(sebastian/version) >= 4.0.1 with php-composer(sebastian/version) < 5)
|
||||
# From composer.json, "suggest": {
|
||||
# "ext-soap": "*",
|
||||
Suggests: php-soap
|
||||
# recommends latest versions
|
||||
# none yet
|
||||
# Fedora 38+ only until 8.1 EOL
|
||||
%if 0%{?fedora} >= 38
|
||||
Recommends: phpunit11
|
||||
%endif
|
||||
# Autoloader
|
||||
Requires: php-composer(fedora/autoloader)
|
||||
# From phpcompatinfo report for version 10.0.0
|
||||
|
|
@ -208,18 +212,19 @@ cat src/autoload.php
|
|||
|
||||
%{_bindir}/phpab \
|
||||
--output tests/autoload.php \
|
||||
--exclude 'tests/end-to-end/regression/4376/tests/Test.php' \
|
||||
--exclude 'tests/end-to-end/regression/2448/Test.php' \
|
||||
--exclude 'tests/*/_files/*.php' \
|
||||
tests
|
||||
tests/_files
|
||||
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
|
||||
|
||||
|
|
@ -245,7 +250,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; do
|
||||
for cmd in php php81 php82 php83 php84; do
|
||||
if which $cmd; then
|
||||
$cmd ./phpunit $OPT || ret=1
|
||||
fi
|
||||
|
|
@ -266,6 +271,80 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
* Mon Jul 8 2024 Remi Collet <remi@remirepo.net> - 10.5.26-1
|
||||
- update to 10.5.26
|
||||
|
||||
* 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
|
||||
|
||||
* Thu Apr 18 2024 Remi Collet <remi@remirepo.net> - 10.5.19-1
|
||||
- update to 10.5.19
|
||||
|
||||
* Mon Apr 15 2024 Remi Collet <remi@remirepo.net> - 10.5.18-1
|
||||
- update to 10.5.18
|
||||
|
||||
* Thu Mar 28 2024 Remi Collet <remi@remirepo.net> - 10.5.16-1
|
||||
- update to 10.5.16
|
||||
|
||||
* Fri Mar 22 2024 Remi Collet <remi@remirepo.net> - 10.5.15-1
|
||||
- update to 10.5.15
|
||||
|
||||
* Thu Mar 21 2024 Remi Collet <remi@remirepo.net> - 10.5.14-1
|
||||
- update to 10.5.14
|
||||
|
||||
* Wed Mar 13 2024 Remi Collet <remi@remirepo.net> - 10.5.13-1
|
||||
- update to 10.5.13
|
||||
|
||||
* Sat Mar 9 2024 Remi Collet <remi@remirepo.net> - 10.5.12-1
|
||||
- update to 10.5.12
|
||||
|
||||
* Mon Feb 26 2024 Remi Collet <remi@remirepo.net> - 10.5.11-1
|
||||
- update to 10.5.11
|
||||
|
||||
* Mon Feb 5 2024 Remi Collet <remi@remirepo.net> - 10.5.10-1
|
||||
- update to 10.5.10
|
||||
|
||||
* Tue Jan 23 2024 Remi Collet <remi@remirepo.net> - 10.5.9-1
|
||||
- update to 10.5.9
|
||||
|
||||
* Fri Jan 19 2024 Remi Collet <remi@remirepo.net> - 10.5.8-1
|
||||
- update to 10.5.8
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (phpunit10-10.5.8-08f4fa7.tgz) = c188ef298df218b52749ebb75d08d9216b361cd9dd1d30b1e578e5d066dbc67ae6c45ca837887025b48ba5b4d110dca8ade8eb9090df599c8340869d172ac3eb
|
||||
SHA512 (phpunit10-10.5.38-a86773b.tgz) = 16749857e9507d429a40c3112dc0dd5b9e653ea1f9925a13a2cad41cf8d4f0fb56ecdf25f6f97cfdbb716ffe0b90129904ad12d39046f7a1c9fa4a0adc906574
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue