[pkg-php-pear] Bug#1133314: php-mock-phpunit: failing testsuite with latest phpunit
David Prévot
taffit at debian.org
Sun Apr 12 07:52:10 BST 2026
Source: php-mock-phpunit
Version: 2.15.0-2
Severity: important
Tags: upstream
Control: affects -1 src:phpunit
Hi James,
php-mock-phpunit is failing its autopkgtests with the latest version of
PHPUnit (the 13.1 branch, uploaded to experimental for now).
https://qa.debian.org/excuses.php?experimental=1&package=phpunit
The relevant test failure is the following.
73s PHPUnit 13.1.1 by Sebastian Bergmann and contributors.
73s
73s Runtime: PHP 8.4.20
73s Configuration: /tmp/autopkgtest-lxc.hbbu_0jv/downtmp/build.6iL/src/phpunit.xml
73s
73s ..E.DDDDDDDD.D.DDDDDDDDDDDDDDD.....RR 37 / 37 (100%)
73s
73s Time: 00:00.079, Memory: 12.00 MB
73s
73s There was 1 PHPUnit error:
73s
73s 1) phpmock\phpunit\MockObjectProxyTest::testProxiedMethods
73s The data provider phpmock\phpunit\MockObjectProxyTest::provideTestProxiedMethods specified for phpmock\phpunit\MockObjectProxyTest::testProxiedMethods is invalid
73s Too few arguments to function PHPUnit\Framework\MockObject\InvocationHandler::__construct(), 2 passed in /tmp/autopkgtest-lxc.hbbu_0jv/downtmp/build.6iL/src/tests/MockObjectProxyTest.php on line 175 and at least 3 expected
73s
73s /tmp/autopkgtest-lxc.hbbu_0jv/downtmp/build.6iL/src/tests/MockObjectProxyTest.php:144
73s
73s --
73s
73s There was 1 error:
73s
73s 1) phpmock\phpunit\MockObjectProxyTest::testExpects
73s TypeError: Mockery_1_PHPUnit_Framework_MockObject_MockObject::expects(): Return value must be of type PHPUnit\Framework\MockObject\InvocationMocker, PHPUnit\Framework\MockObject\InvocationStubberImplementation returned
73s
73s /usr/share/php/phpmock/phpunit/classes/MockObjectProxyReturnTypes120.php:70
73s /tmp/autopkgtest-lxc.hbbu_0jv/downtmp/build.6iL/src/tests/MockObjectProxyTest.php:78
73s
73s --
73s
73s There were 2 risky tests:
73s
73s 1) phpmock\phpunit\PHPMockTest::testPreserveArgumentDefaultValue
73s This test did not perform any assertions
73s
73s /tmp/autopkgtest-lxc.hbbu_0jv/downtmp/build.6iL/src/tests/PHPMockTest.php:128
73s
73s 2) phpmock\phpunit\PHPMockTest::testResetToDefaultArgumentOfOriginalFunction
73s This test did not perform any assertions
73s
73s /tmp/autopkgtest-lxc.hbbu_0jv/downtmp/build.6iL/src/tests/PHPMockTest.php:131
73s
73s ERRORS!
73s Tests: 37, Assertions: 74, Errors: 2, PHPUnit Deprecations: 13, Risky: 2.
73s autopkgtest [20:37:39]: test run-upstream-tests: -----------------------]
https://ci.debian.net/packages/p/php-mock-phpunit/unstable/amd64/70157210/
Thanks in advance if you can get it fixed, so we can continue tracking
the latest PHPUnit version in sid in time for Forky release.
Regards,
taffit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-php-pear/attachments/20260412/d715f5a9/attachment-0001.sig>
More information about the pkg-php-pear
mailing list