diff options
| author | Remi Collet <remi@remirepo.net> | 2026-02-10 10:23:02 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-02-10 10:23:02 +0100 |
| commit | 6cc3ee67e3af3d764d5e9923d131b4046870b9b9 (patch) | |
| tree | 1dfe75edd955ff88ee767be1ffb3a199ae95420a | |
| parent | 3b953c35a71a8b3fdfe61cf256af6a9194e0002a (diff) | |
allow phpunit13
| -rw-r--r-- | composer.json | 2 | ||||
| -rw-r--r-- | php-phpspec-prophecy-phpunit.spec | 41 |
2 files changed, 28 insertions, 15 deletions
diff --git a/composer.json b/composer.json index d57b8c1..0a5a005 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "require": { "php": "^7.3 || ^8", "phpspec/prophecy": "^1.18", - "phpunit/phpunit":"^9.1 || ^10.1 || ^11.0 || ^12.0" + "phpunit/phpunit":"^9.1 || ^10.1 || ^11.0 || ^12.0 || ^13.0" }, "autoload": { "psr-4": { diff --git a/php-phpspec-prophecy-phpunit.spec b/php-phpspec-prophecy-phpunit.spec index 0fa4f45..1e724f1 100644 --- a/php-phpspec-prophecy-phpunit.spec +++ b/php-phpspec-prophecy-phpunit.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-phpspec-prophecy-phpunit # -# SPDX-FileCopyrightText: Copyright 2020-2025 Remi Collet +# SPDX-FileCopyrightText: Copyright 2020-2026 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # @@ -9,13 +9,13 @@ %bcond_without tests -%global gh_commit d3c28041d9390c9bca325a08c5b2993ac855bded +%global gh_commit 89f91b01d0640b7820e427e02a007bc6489d8a26 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner phpspec %global gh_project prophecy-phpunit Name: php-%{gh_owner}-%{gh_project} -Version: 2.4.0 +Version: 2.5.0 Release: 1%{?dist} Summary: Integrating the Prophecy mocking library in PHPUnit test cases @@ -28,11 +28,16 @@ BuildArch: noarch BuildRequires: php(language) >= 7.3 %if %{with tests} BuildRequires: (php-composer(phpspec/prophecy) >= 1.18 with php-composer(phpspec/prophecy) < 2) -# remirepo:4 +# remirepo:1 +%if 0%{?fedora} >= 43 || 0%{?rhel} >= 11 +BuildRequires: phpunit13 >= 13.0 +# remirepo:2 +%endif %if 0%{?fedora} >= 38 || 0%{?rhel} >= 10 BuildRequires: phpunit12 >= 12.0 -BuildRequires: phpunit11 >= 11.0 +# remirepo:1 %endif +BuildRequires: phpunit11 >= 11.0 BuildRequires: phpunit10 >= 10.1 BuildRequires: phpunit9 >= 9.1 %endif @@ -42,10 +47,10 @@ BuildRequires: php-fedora-autoloader-devel # from composer.json, "requires": { # "php": "^7.3 || ^8", # "phpspec/prophecy": "^1.18", -# "phpunit/phpunit":"^9.1 || ^10.1 || ^11.0 || ^12.0" +# "phpunit/phpunit":"^9.1 || ^10.1 || ^11.0 || ^12.0 || ^13.0" Requires: php(language) >= 7.3 Requires: (php-composer(phpspec/prophecy) >= 1.18 with php-composer(phpspec/prophecy) < 2) -Requires: (phpunit9 >= 9.1 or phpunit10 >= 10.1 or phpunit11 >= 11.0 or phpunit12 >= 12.0) +Requires: (phpunit9 >= 9.1 or phpunit10 >= 10.1 or phpunit11 >= 11.0 or phpunit12 >= 12.0 or phpunit13 >= 13.0) # From phpcompatinfo report for version 2.0.1 #none # Autoloader @@ -99,7 +104,7 @@ sed -e 's:src/::' -i tests/MockFailure.phpt : upstream test suite ret=0 -for cmd in php php81 php82 php83 php84; do +for cmd in php php82 php83 php84 php85; do if which $cmd; then sed -e 's/@PHPUNIT@/PHPUnit9/' vendor/autoload.php.in > vendor/autoload.php $cmd -d auto_prepend_file=vendor/autoload.php \ @@ -108,20 +113,24 @@ for cmd in php php81 php82 php83 php84; do sed -e 's/@PHPUNIT@/PHPUnit10/' vendor/autoload.php.in > vendor/autoload.php $cmd -d auto_prepend_file=vendor/autoload.php \ %{_bindir}/phpunit10 --no-coverage|| ret=1 - fi -done -for cmd in php php82 php83 php84; do - if which %{_bindir}/phpunit11 && which $cmd; then + sed -e 's/@PHPUNIT@/PHPUnit11/' vendor/autoload.php.in > vendor/autoload.php $cmd -d auto_prepend_file=vendor/autoload.php \ %{_bindir}/phpunit11 --no-coverage|| ret=1 fi done -for cmd in php php83 php84; do +for cmd in php php83 php84 php85; do if which %{_bindir}/phpunit12 && which $cmd; then sed -e 's/@PHPUNIT@/PHPUnit12/' vendor/autoload.php.in > vendor/autoload.php $cmd -d auto_prepend_file=vendor/autoload.php \ - %{_bindir}/phpunit11 --no-coverage|| ret=1 + %{_bindir}/phpunit12 --no-coverage|| ret=1 + fi +done +for cmd in php php84 php85; do + if which %{_bindir}/phpunit13 && which $cmd; then + sed -e 's/@PHPUNIT@/PHPUnit13/' vendor/autoload.php.in > vendor/autoload.php + $cmd -d auto_prepend_file=vendor/autoload.php \ + %{_bindir}/phpunit13 --no-coverage|| ret=1 fi done exit $ret @@ -138,6 +147,10 @@ exit $ret %changelog +* Tue Feb 10 2026 Remi Collet <remi@remirepo.net> - 2.5.0-1 +- update to 2.5.0 +- allow phpunit13 + * Mon May 26 2025 Remi Collet <remi@remirepo.net> - 2.4.0-1 - update to 2.4.0 (no change) - allow phpunit12 |
