[pkg-php-pear] Bug#1070528: php-dflydev-dot-access-data: FTBFS with phpunit 11: Data Provider method Dflydev\DotAccessData\UtilTest::mergeAssocArrayProvider() is not static

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:13:27 BST 2024


Source: php-dflydev-dot-access-data
Version: 3.0.2-1
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-dflydev-dot-access-data 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
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> 
> .................                                                 17 / 17 (100%)
> 
> Time: 00:00.005, Memory: 8.00 MB
> 
> There was 1 PHPUnit error:
> 
> 1) Dflydev\DotAccessData\UtilTest::testMergeAssocArray
> The data provider specified for Dflydev\DotAccessData\UtilTest::testMergeAssocArray is invalid
> Data Provider method Dflydev\DotAccessData\UtilTest::mergeAssocArrayProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/UtilTest.php:30
> 
> --
> 
> There were 2 PHPUnit test runner deprecations:
> 
> 1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!
> 
> 2) Metadata found in doc-comment for method Dflydev\DotAccessData\UtilTest::testMergeAssocArray(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> ERRORS!
> Tests: 17, Assertions: 222, Errors: 1, Deprecations: 2.
> make[1]: *** [debian/rules:18: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-dflydev-dot-access-data/php-dflydev-dot-access-data_3.0.2-1+rebuild1714366202_amd64-2024-04-29T04:50:03Z.build



More information about the pkg-php-pear mailing list