[pkg-php-pear] Bug#1070572: php-mock-integration: FTBFS with phpunit 11: There were 2 PHPUnit errors
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:20:22 BST 2024
Source: php-mock-integration
Version: 2.1.0-3
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: phpunit11
Hi,
phpunit 11 is out and is now available in experimental. During a test rebuild,
php-mock-integration was found to fail to build with this new phpunit version.
To reproduce this locally, you need to install phpunit from experimental on an
unstable system or build chroot.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit --do-not-cache-result \
> --bootstrap vendor/autoload.php \
> tests
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
>
> D..DD 5 / 5 (100%)
>
> Time: 00:00.007, Memory: 8.00 MB
>
> There were 2 PHPUnit errors:
>
> 1) phpmock\integration\MockDelegateFunctionBuilderTest::testBackupStaticAttributes
> The data provider specified for phpmock\integration\MockDelegateFunctionBuilderTest::testBackupStaticAttributes is invalid
> Data Provider method phpmock\integration\MockDelegateFunctionBuilderTest::provideTestBackupStaticAttributes() is not static
>
> /<<PKGBUILDDIR>>/tests/MockDelegateFunctionBuilderTest.php:81
>
> 2) phpmock\integration\MockDelegateFunctionBuilderTest::testDeserializationInNewProcess
> The data provider specified for phpmock\integration\MockDelegateFunctionBuilderTest::testDeserializationInNewProcess is invalid
> Data Provider method phpmock\integration\MockDelegateFunctionBuilderTest::provideTestDeserializationInNewProcess() is not static
>
> /<<PKGBUILDDIR>>/tests/MockDelegateFunctionBuilderTest.php:109
>
> --
>
> There were 7 PHPUnit test runner deprecations:
>
> 1) Metadata found in doc-comment for method phpmock\integration\MockDelegateFunctionBuilderTest::testBuild(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 2) Metadata found in doc-comment for method phpmock\integration\MockDelegateFunctionBuilderTest::testDiverseSignaturesProduceDifferentClasses(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 3) Metadata found in doc-comment for method phpmock\integration\MockDelegateFunctionBuilderTest::testSameSignaturesProduceSameClass(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 4) Metadata found in doc-comment for method phpmock\integration\MockDelegateFunctionBuilderTest::testBackupStaticAttributes(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 5) Metadata found in doc-comment for method phpmock\integration\MockDelegateFunctionBuilderTest::testDeserializationInNewProcess(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 6) Metadata found in doc-comment for method phpmock\integration\MockDelegateFunctionTest::testDelegateReturnsMockResult(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 7) Metadata found in doc-comment for method phpmock\integration\MockDelegateFunctionTest::testDelegateForwardsArguments(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> --
>
> 2 tests triggered 2 PHPUnit deprecations:
>
> 1) phpmock\integration\MockDelegateFunctionTest::testDelegateReturnsMockResult
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/MockDelegateFunctionTest.php:38
>
> 2) phpmock\integration\MockDelegateFunctionTest::testDelegateForwardsArguments
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/MockDelegateFunctionTest.php:56
>
> ERRORS!
> Tests: 5, Assertions: 8, Errors: 2, Deprecations: 10.
> make[1]: *** [debian/rules:22: override_dh_auto_test] Error 2
The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/1/php-mock-integration/php-mock-integration_2.1.0-3+rebuild1714781221_amd64-2024-05-04T00:07:01Z.build
More information about the pkg-php-pear
mailing list