[pkg-php-pear] Bug#1070544: php-fig-link-util: FTBFS with phpunit 11: There were 2 PHPUnit errors

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


Source: php-fig-link-util
Version: 1.2.0-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-fig-link-util 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 --bootstrap=src/autoload.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> 
> DDDDDDD.                                                            8 / 8 (100%)
> 
> Time: 00:00.004, Memory: 8.00 MB
> 
> There were 2 PHPUnit errors:
> 
> 1) Fig\Link\Tests\TemplatedHrefTraitTest::test_templated
> The data provider specified for Fig\Link\Tests\TemplatedHrefTraitTest::test_templated is invalid
> Data Provider method Fig\Link\Tests\TemplatedHrefTraitTest::templatedHrefProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/TemplatedHrefTraitTest.php:19
> 
> 2) Fig\Link\Tests\TemplatedHrefTraitTest::test_not_templated
> The data provider specified for Fig\Link\Tests\TemplatedHrefTraitTest::test_not_templated is invalid
> Data Provider method Fig\Link\Tests\TemplatedHrefTraitTest::notTemplatedHrefProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/TemplatedHrefTraitTest.php:34
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) No tests found in class "Fig\Link\Tests\TemplatedHrefTraitTest".
> 
> --
> 
> There were 3 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 Fig\Link\Tests\TemplatedHrefTraitTest::test_templated(). 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 Fig\Link\Tests\TemplatedHrefTraitTest::test_not_templated(). 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: 8, Assertions: 17, Errors: 2, Warnings: 1, Deprecations: 4.
> make[1]: *** [debian/rules:13: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-fig-link-util/php-fig-link-util_1.2.0-1+rebuild1714367039_amd64-2024-04-29T05:04:00Z.build



More information about the pkg-php-pear mailing list