[pkg-php-pear] Bug#1070568: php-masterminds-html5: FTBFS with phpunit 11: There were 3 PHPUnit errors

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


Source: php-masterminds-html5
Version: 2.9.0+dfsg-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-masterminds-html5 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
> 
> ...............................................................  63 / 140 ( 45%)
> ............................DDDDDDDDDDDDDDDDD.................. 126 / 140 ( 90%)
> .........DDDDD                                                  140 / 140 (100%)
> 
> Time: 00:00.036, Memory: 10.00 MB
> 
> There were 3 PHPUnit errors:
> 
> 1) Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testEnc
> The data provider specified for Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testEnc is invalid
> Data Provider method Masterminds\HTML5\Tests\Serializer\OutputRulesTest::getEncData() is not static
> 
> /<<PKGBUILDDIR>>/test/HTML5/Serializer/OutputRulesTest.php:439
> 
> 2) Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testEscape
> The data provider specified for Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testEscape is invalid
> Data Provider method Masterminds\HTML5\Tests\Serializer\OutputRulesTest::getEncData() is not static
> 
> /<<PKGBUILDDIR>>/test/HTML5/Serializer/OutputRulesTest.php:458
> 
> 3) Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testBooleanAttrs
> The data provider specified for Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testBooleanAttrs is invalid
> Data Provider method Masterminds\HTML5\Tests\Serializer\OutputRulesTest::booleanAttributes() is not static
> 
> /<<PKGBUILDDIR>>/test/HTML5/Serializer/OutputRulesTest.php:485
> 
> --
> 
> There were 6 PHPUnit test runner deprecations:
> 
> 1) Metadata found in doc-comment for method Masterminds\HTML5\Tests\Html5Test::before(). 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 Masterminds\HTML5\Tests\Serializer\OutputRulesTest::before(). 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 Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testEnc(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 4) Metadata found in doc-comment for method Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testEscape(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 5) Metadata found in doc-comment for method Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testBooleanAttrs(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 6) Metadata found in doc-comment for method Masterminds\HTML5\Tests\Serializer\TraverserTest::before(). 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: 140, Assertions: 2100, Errors: 3, Deprecations: 8.
> make[1]: *** [debian/rules:24: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/1/php-masterminds-html5/php-masterminds-html5_2.9.0+dfsg-1+rebuild1714781042_amd64-2024-05-04T00:04:03Z.build



More information about the pkg-php-pear mailing list