[pkg-php-pear] Bug#1070585: php-phar-io-manifest: FTBFS with phpunit 11: There were 2 PHPUnit errors

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


Source: php-phar-io-manifest
Version: 2.0.4-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-phar-io-manifest 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):
> There were 2 PHPUnit errors:
> 
> 1) PharIo\Manifest\ManifestDocumentMapperTest::testCanSerializeToString
> The data provider specified for PharIo\Manifest\ManifestDocumentMapperTest::testCanSerializeToString is invalid
> Data Provider method PharIo\Manifest\ManifestDocumentMapperTest::dataProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ManifestDocumentMapperTest.php:63
> 
> 2) PharIo\Manifest\ManifestSerializerTest::testCanSerializeToString
> The data provider specified for PharIo\Manifest\ManifestSerializerTest::testCanSerializeToString is invalid
> Data Provider method PharIo\Manifest\ManifestSerializerTest::dataProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ManifestSerializerTest.php:68
> 
> --
> 
> There were 29 PHPUnit test runner deprecations:
> 
...
> 
> --
> 
> 1 test triggered 1 PHPUnit deprecation:
> 
> 1) PharIo\Manifest\ManifestSerializerTest::testCanHandleUnknownType
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
> 
> /<<PKGBUILDDIR>>/tests/ManifestSerializerTest.php:104
> 
> ERRORS!
> Tests: 136, Assertions: 140, Errors: 2, Deprecations: 30.
> make[1]: *** [debian/rules:14: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/1/php-phar-io-manifest/php-phar-io-manifest_2.0.4-3+rebuild1714790810_amd64-2024-05-04T02:46:51Z.build



More information about the pkg-php-pear mailing list