[pkg-php-pear] Bug#1070570: php-ml-iri: FTBFS with phpunit 11: There were 4 PHPUnit errors

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


Source: php-ml-iri
Version: 1.1.4-2
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-ml-iri 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
> 
> ...                                                                 3 / 3 (100%)
> 
> Time: 00:00.003, Memory: 8.00 MB
> 
> There were 4 PHPUnit errors:
> 
> 1) ML\IRI\Test\IriTest::testDecomposition
> The data provider specified for ML\IRI\Test\IriTest::testDecomposition is invalid
> Data Provider method ML\IRI\Test\IriTest::decompositionProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/IriTest.php:37
> 
> 2) ML\IRI\Test\IriTest::testIsAbsolute
> The data provider specified for ML\IRI\Test\IriTest::testIsAbsolute is invalid
> Data Provider method ML\IRI\Test\IriTest::isAbsoluteProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/IriTest.php:100
> 
> 3) ML\IRI\Test\IriTest::testReferenceResolution
> The data provider specified for ML\IRI\Test\IriTest::testReferenceResolution is invalid
> Data Provider method ML\IRI\Test\IriTest::referenceResolutionProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/IriTest.php:231
> 
> 4) ML\IRI\Test\IriTest::testRelativize
> The data provider specified for ML\IRI\Test\IriTest::testRelativize is invalid
> Data Provider method ML\IRI\Test\IriTest::relativizeProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/IriTest.php:924
> 
> --
> 
> 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 11:
>   - Element 'phpunit', attribute 'backupStaticAttributes': The attribute 'backupStaticAttributes' is not allowed.
>   - Element 'phpunit', attribute 'convertErrorsToExceptions': The attribute 'convertErrorsToExceptions' is not allowed.
>   - Element 'phpunit', attribute 'convertNoticesToExceptions': The attribute 'convertNoticesToExceptions' is not allowed.
>   - Element 'phpunit', attribute 'convertWarningsToExceptions': The attribute 'convertWarningsToExceptions' is not allowed.
>   - Element 'phpunit', attribute 'strict': The attribute 'strict' is not allowed.
> 
>   Line 19:
>   - Element 'filter': This element is not expected.
> 
> 
> --
> 
> There were 4 PHPUnit test runner deprecations:
> 
> 1) Metadata found in doc-comment for method ML\IRI\Test\IriTest::testDecomposition(). 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 ML\IRI\Test\IriTest::testIsAbsolute(). 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 ML\IRI\Test\IriTest::testReferenceResolution(). 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 ML\IRI\Test\IriTest::testRelativize(). 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: 3, Assertions: 4, Errors: 4, Warnings: 1, Deprecations: 4.
> make[1]: *** [debian/rules:23: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/1/php-ml-iri/php-ml-iri_1.1.4-2+rebuild1714781116_amd64-2024-05-04T00:05:17Z.build



More information about the pkg-php-pear mailing list