public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php-mock-phpunit2] rawhide: v2.16.0
@ 2026-10-02  9:52 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-10-02  9:52 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/php-mock-phpunit2
Branch : rawhide
Commit : 483359c4d83131a57fbea2f5fe755a9667341161
Author : Remi Collet <remi@fedoraproject.org>
Date   : 2026-10-02T11:52:27+02:00
Stats  : +19/-177 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/php-mock-phpunit2/c/483359c4d83131a57fbea2f5fe755a9667341161?branch=rawhide

Log:
v2.16.0

---
diff --git a/.gitignore b/.gitignore
index 41311e8..fa28208 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@ clog
 /php-mock-phpunit2-2.13.1-29f90fe.tar.gz
 /php-mock-phpunit2-2.14.0-c074f7a.tar.gz
 /php-mock-phpunit2-2.15.0-701df15.tar.gz
+/php-mock-phpunit-2.16.0.tar.gz

diff --git a/php-mock-phpunit2.spec b/php-mock-phpunit2.spec
index cae0f62..f0db117 100644
--- a/php-mock-phpunit2.spec
+++ b/php-mock-phpunit2.spec
@@ -6,24 +6,22 @@
 #
 # Please, preserve the changelog entries
 #
-%global gh_commit    701df15b183f25af663af134eb71353cd838b955
-%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
-%global gh_date      2026-02-06
 %global gh_owner     php-mock
 %global gh_project   php-mock-phpunit
+%global forgeurl     https://github.com/%{gh_owner}/%{gh_project}
+%global tag          %{version}
 %global with_tests   0%{!?_without_tests:1}
 %global major        2
 
 Name:           php-mock-phpunit%{major}
-Version:        2.15.0
-Release:        3%{?dist}
 Summary:        Mock built-in PHP functions with PHPUnit.
+Version:        2.16.0
+Release:        1%{?dist}
 
 License:        WTFPL
-URL:            https://github.com/%{gh_owner}/%{gh_project}
-Source0:        https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
-
-Patch0:         upstream.patch
+%forgemeta
+URL:            %{forgeurl}
+Source0:        %{forgesource}
 
 BuildArch:      noarch
 BuildRequires:  php(language) >= 7
@@ -71,8 +69,7 @@ No further extension is needed.
 
 
 %prep
-%setup -q -n %{gh_project}-%{gh_commit}
-%patch -P0 -p1
+%forgesetup
 
 : Create autoloader
 cat << 'AUTOLOAD' | tee rpm.php
@@ -115,7 +112,7 @@ ret=0
 
 if [ -x %{_bindir}/phpunit8 ]; then
 : Run upstream test suite with phpunit8
-for cmd in php php82 php82 php84 php85; do
+for cmd in php php82 php82 php84 php85 php86; do
   if which $cmd; then
     $cmd %{_bindir}/phpunit8 --verbose || ret=1
   fi
@@ -124,7 +121,7 @@ fi
 
 if [ -x %{_bindir}/phpunit9 ]; then
 : Run upstream test suite with phpunit9
-for cmd in php php82 php83 php84 php85; do
+for cmd in php php82 php83 php84 php85 php86; do
   if which $cmd; then
     $cmd %{_bindir}/phpunit9 --verbose || ret=1
   fi
@@ -133,7 +130,7 @@ fi
 
 if [ -x %{_bindir}/phpunit10 ]; then
 : Run upstream test suite with phpunit10
-for cmd in php php82 php83 php84 php85; do
+for cmd in php php82 php83 php84 php85 php86; do
   if which $cmd; then
     $cmd %{_bindir}/phpunit10 \
        --filter '^((?!(testPreserveArgumentDefaultValue)).)*$' \
@@ -144,7 +141,7 @@ fi
 
 if [ -x %{_bindir}/phpunit11 ]; then
 : Run upstream test suite with phpunit11
-for cmd in php php82 php83 php84 php85; do
+for cmd in php php82 php83 php84 php85 php86; do
   if which $cmd; then
     $cmd %{_bindir}/phpunit11 \
        --filter '^((?!(testPreserveArgumentDefaultValue)).)*$' \
@@ -155,7 +152,7 @@ fi
 
 if [ -x %{_bindir}/phpunit12 ]; then
 : Run upstream test suite with phpunit12
-for cmd in php php83 php84 php85; do
+for cmd in php php83 php84 php85 php86; do
   if which $cmd; then
     $cmd %{_bindir}/phpunit12 \
        --filter '^((?!(testPreserveArgumentDefaultValue)).)*$' \
@@ -166,7 +163,7 @@ fi
 
 if [ -x %{_bindir}/phpunit13 ]; then
 : Run upstream test suite with phpunit13
-for cmd in php php84 php85; do
+for cmd in php php84 php85 php86; do
   if which $cmd; then
     $cmd %{_bindir}/phpunit13 \
        --filter '^((?!(testPreserveArgumentDefaultValue|testExpects)).)*$' \
@@ -188,6 +185,9 @@ exit $ret
 
 
 %changelog
+* Fri Oct  2 2026 Remi Collet <remi@remirepo.net> - 2.16.0-1
+- update to 2.16.0
+
 * Thu Sep  3 2026 Remi Collet <remi@remirepo.net> - 2.15.0-3
 - add upstream patches for PHPUnit 13.1
 - fix FTBFS #2504405

diff --git a/sources b/sources
index c458a31..705937c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (php-mock-phpunit2-2.15.0-701df15.tar.gz) = 68e79188c0785fdd4e9168eeb4ab392180925782e5b5c427350704e2ff0c2a4f96382dcb06165400d643b4eabf8dbe388ff290c7f470eb9d779b2bed791b1d1a
+SHA512 (php-mock-phpunit-2.16.0.tar.gz) = 669f28d25097936d84ba700620ae820b9d897bda4ebe05d6c606f05f208faa721a763204bc6fbd3eb8628aa0e9097bf7d6d32ed19ca8ce5484f5d24cfcd64b94

diff --git a/upstream.patch b/upstream.patch
deleted file mode 100644
index bead2b4..0000000
--- a/upstream.patch
+++ /dev/null
@@ -1,159 +0,0 @@
-From 6032326b8be697b2a2c9a2fa0963514702a8f8a7 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20Bundyra?= <contact@webimpress.com>
-Date: Mon, 9 Feb 2026 09:34:17 +0100
-Subject: [PATCH] fix: PHPUnit 13.0.1 tests (#94)
-
-As of https://github.com/sebastianbergmann/phpunit/releases/tag/13.0.1
-`InvocationHandler` returns now `InvocationStubber` for stubs instead of `InvocationMocker`
-
-See https://github.com/sebastianbergmann/phpunit/issues/6497
----
- tests/MockObjectProxyTest.php | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tests/MockObjectProxyTest.php b/tests/MockObjectProxyTest.php
-index 54c8c56..593b15c 100644
---- a/tests/MockObjectProxyTest.php
-+++ b/tests/MockObjectProxyTest.php
-@@ -60,7 +60,7 @@ public function testExpects()
-         if (class_exists(\PHPUnit\Runner\Version::class)
-             && version_compare(\PHPUnit\Runner\Version::id(), '8.4.0') >= 0
-         ) {
--            $invocationHandler = new InvocationHandler([$methods], false);
-+            $invocationHandler = new InvocationHandler([$methods], false, true);
-             $invocationMocker = $invocationHandler->expects($matcher);
-         } else {
-             $invocationMocker = new InvocationMocker(
-From 30856643c6c70d3270a8a0f7ee4b891f0247baad Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20Bundyra?= <contact@webimpress.com>
-Date: Thu, 16 Apr 2026 21:09:13 +0100
-Subject: [PATCH] chore: Run tests on PHPUnit ~13.1.0 (#95)
-
----
- .github/workflows/tests.yml   | 19 +++++++++++++++++++
- tests/MockObjectProxyTest.php | 12 ++++++++++--
- 2 files changed, 29 insertions(+), 2 deletions(-)
-
-diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
-index 9d4c30d..e6182a0 100644
---- a/.github/workflows/tests.yml
-+++ b/.github/workflows/tests.yml
-@@ -25,6 +25,7 @@ jobs:
-           - '7.1'
-           - '7.0'
-         phpunit-version:
-+          - "13.1.0"
-           - "13.0.0"
-           - '12.5.0'
-           - '12.4.0'
-@@ -163,6 +164,8 @@ jobs:
-             phpunit-version: '6.0.0'
-         
-           # PHP 8.3 Exclusions
-+          - php-version: '8.3'
-+            phpunit-version: '13.1.0'
-           - php-version: '8.3'
-             phpunit-version: '13.0.0'
-           - php-version: '8.3'
-@@ -211,6 +214,8 @@ jobs:
-             phpunit-version: '6.0.0'
- 
-           # PHP 8.2 Exclusions
-+          - php-version: '8.2'
-+            phpunit-version: '13.1.0'
-           - php-version: '8.2'
-             phpunit-version: '13.0.0'
-           - php-version: '8.2'
-@@ -271,6 +276,8 @@ jobs:
-             phpunit-version: '6.0.0'
- 
-           # PHP 8.1 Exclusions
-+          - php-version: '8.1'
-+            phpunit-version: '13.1.0'
-           - php-version: '8.1'
-             phpunit-version: '13.0.0'
-           - php-version: '8.1'
-@@ -343,6 +350,8 @@ jobs:
-             phpunit-version: '6.0.0'
- 
-           # PHP 8.0 Exclusions
-+          - php-version: '8.0'
-+            phpunit-version: '13.1.0'
-           - php-version: '8.0'
-             phpunit-version: '13.0.0'
-           - php-version: '8.0'
-@@ -423,6 +432,8 @@ jobs:
-             phpunit-version: '6.0.0'
-             
-           # PHP 7.4 Exclusions
-+          - php-version: '7.4'
-+            phpunit-version: '13.1.0'
-           - php-version: '7.4'
-             phpunit-version: '13.0.0'
-           - php-version: '7.4'
-@@ -489,6 +500,8 @@ jobs:
-             phpunit-version: '6.0.0'
- 
-           # PHP 7.3 Exclusions
-+          - php-version: '7.3'
-+            phpunit-version: '13.1.0'
-           - php-version: '7.3'
-             phpunit-version: '13.0.0'
-           - php-version: '7.3'
-@@ -529,6 +542,8 @@ jobs:
-             phpunit-version: '10.0.0'
-           
-           # PHP 7.2 Exclusions
-+          - php-version: '7.2'
-+            phpunit-version: '13.1.0'
-           - php-version: '7.2'
-             phpunit-version: '13.0.0'
-           - php-version: '7.2'
-@@ -583,6 +598,8 @@ jobs:
-             phpunit-version: '9.0.0'
-           
-           # PHP 7.1 Exclusions
-+          - php-version: '7.1'
-+            phpunit-version: '13.1.0'
-           - php-version: '7.1'
-             phpunit-version: '13.0.0'
-           - php-version: '7.1'
-@@ -649,6 +666,8 @@ jobs:
-             phpunit-version: '8.0.0'
-       
-           # PHP 7.0 Exclusions
-+          - php-version: '7.0'
-+            phpunit-version: '13.1.0'
-           - php-version: '7.0'
-             phpunit-version: '13.0.0'
-           - php-version: '7.0'
-diff --git a/tests/MockObjectProxyTest.php b/tests/MockObjectProxyTest.php
-index 593b15c..5758ae5 100644
---- a/tests/MockObjectProxyTest.php
-+++ b/tests/MockObjectProxyTest.php
-@@ -60,7 +60,9 @@ public function testExpects()
-         if (class_exists(\PHPUnit\Runner\Version::class)
-             && version_compare(\PHPUnit\Runner\Version::id(), '8.4.0') >= 0
-         ) {
--            $invocationHandler = new InvocationHandler([$methods], false, true);
-+            $invocationHandler = version_compare(\PHPUnit\Runner\Version::id(), '13.1.0') >= 0
-+                ? new InvocationHandler([$methods], '', false, true)
-+                : new InvocationHandler([$methods], false, true);
-             $invocationMocker = $invocationHandler->expects($matcher);
-         } else {
-             $invocationMocker = new InvocationMocker(
-@@ -172,7 +174,13 @@ public static function provideTestProxiedMethods()
-         if (class_exists(\PHPUnit\Runner\Version::class)
-             && version_compare(\PHPUnit\Runner\Version::id(), '8.4.0') >= 0
-         ) {
--            $return[] = ['__phpunit_getInvocationHandler', [], new InvocationHandler([], false)];
-+            $return[] = [
-+                '__phpunit_getInvocationHandler',
-+                [],
-+                version_compare(\PHPUnit\Runner\Version::id(), '13.1.0') >= 0
-+                    ? new InvocationHandler([], '', false)
-+                    : new InvocationHandler([], false)
-+            ];
-         } else {
-             $return[] = [
-                 '__phpunit_getInvocationMocker',

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-02  9:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-02  9:52 [rpms/php-mock-phpunit2] rawhide: v2.16.0 Remi Collet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox