From 6ad6f30443589849cd5d664461ed9e50f2c98bc7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 19 Jul 2022 09:10:36 +0200 Subject: switch to phpunit9 --- php-zetacomponents-console-tools.spec | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/php-zetacomponents-console-tools.spec b/php-zetacomponents-console-tools.spec index f418b6c..d2d081c 100644 --- a/php-zetacomponents-console-tools.spec +++ b/php-zetacomponents-console-tools.spec @@ -23,7 +23,7 @@ Name: php-%{gh_owner}-%{cname} Version: 1.7.3 -Release: 1%{?dist} +Release: 3%{?dist} Summary: Zeta %{gh_project} Component License: ASL 2.0 @@ -46,8 +46,8 @@ BuildRequires: php-zetacomponents-base >= 1.8 # From composer.json, "require-dev": { # "phpunit/phpunit": "~8.0", # "zetacomponents/unit-test": "*" -BuildRequires: phpunit8 -BuildRequires: php-composer(%{gh_owner}/unit-test) +BuildRequires: phpunit9 +BuildRequires: php-composer(%{gh_owner}/unit-test) >= 1.2.0 %endif # From composer.json, "require": { @@ -128,13 +128,16 @@ EOF : Drop assertion which rely on path in sources dir sed -e '/realpath/d' -i tests/statusbar_test.php +: Not ready for phpunit9 +rm tests/option_test.php tests/arguments_test.php + : Run test test suite for cmd in php php74 php80 php81 do if which $cmd; then - $cmd %{_bindir}/phpunit8 --exclude-group interactive + $cmd %{_bindir}/phpunit9 --exclude-group interactive fi done %else @@ -156,6 +159,9 @@ done %changelog +* Tue Jul 19 2022 Remi Collet - 1.7.3-3 +- switch to phpunit9 + * Wed Jan 19 2022 Remi Collet - 1.7.3-1 - update to 1.7.3 -- cgit