[pkg-php-pear] Bug#1070563: php-league-html-to-markdown: FTBFS with phpunit 11: There were 2 PHPUnit errors

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


Source: php-league-html-to-markdown
Version: 5.1.1-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-league-html-to-markdown 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 debian/autoload.tests.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> 
> .........................................                         41 / 41 (100%)
> 
> Time: 00:00.148, Memory: 8.00 MB
> 
> There were 2 PHPUnit errors:
> 
> 1) League\HTMLToMarkdown\Test\CoerceTest::testToString
> The data provider specified for League\HTMLToMarkdown\Test\CoerceTest::testToString is invalid
> Data Provider method League\HTMLToMarkdown\Test\CoerceTest::provideStringTestCases() is not static
> 
> /<<PKGBUILDDIR>>/tests/CoerceTest.php:17
> 
> 2) League\HTMLToMarkdown\Test\CoerceTest::testToStringThrowsOnUncoercableValue
> The data provider specified for League\HTMLToMarkdown\Test\CoerceTest::testToStringThrowsOnUncoercableValue is invalid
> Data Provider method League\HTMLToMarkdown\Test\CoerceTest::provideInvalidStringTestCases() is not static
> 
> /<<PKGBUILDDIR>>/tests/CoerceTest.php:38
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) No tests found in class "League\HTMLToMarkdown\Test\CoerceTest".
> 
> --
> 
> There were 2 PHPUnit test runner deprecations:
> 
> 1) Metadata found in doc-comment for method League\HTMLToMarkdown\Test\CoerceTest::testToString(). 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 League\HTMLToMarkdown\Test\CoerceTest::testToStringThrowsOnUncoercableValue(). 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: 41, Assertions: 218, Errors: 2, Warnings: 1, Deprecations: 2.
> 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-league-html-to-markdown/php-league-html-to-markdown_5.1.1-1+rebuild1714780892_amd64-2024-05-04T00:01:33Z.build



More information about the pkg-php-pear mailing list