[pkg-php-pear] Bug#1070582: php-parsedown: FTBFS with phpunit 11: Data Provider method ParsedownTest::data() is not static

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


Source: php-parsedown
Version: 1.7.4-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-parsedown 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
> 
> ....                                                                4 / 4 (100%)
> 
> Time: 00:00.003, Memory: 8.00 MB
> 
> There was 1 PHPUnit error:
> 
> 1) ParsedownTest::test_
> The data provider specified for ParsedownTest::test_ is invalid
> Data Provider method ParsedownTest::data() is not static
> 
> /<<PKGBUILDDIR>>/test/ParsedownTest.php:44
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) Test results may not be as expected because the XML configuration file did not pass validation:
> 
>   Line 4:
>   - Element 'testsuite': The attribute 'name' is required but missing.
> 
> 
> --
> 
> There was 1 PHPUnit test runner deprecation:
> 
> 1) Metadata found in doc-comment for method ParsedownTest::test_(). 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: 4, Assertions: 10, Errors: 1, Warnings: 1, Deprecations: 1.
> make[1]: *** [debian/rules:15: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/1/php-parsedown/php-parsedown_1.7.4-1+rebuild1714781713_amd64-2024-05-04T00:15:13Z.build



More information about the pkg-php-pear mailing list