[pkg-php-pear] Bug#1070586: php-phpdocumentor-reflection-common: FTBFS with phpunit 11: There were 2 PHPUnit errors
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:27:23 BST 2024
Source: php-phpdocumentor-reflection-common
Version: 2.2.0-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-phpdocumentor-reflection-common 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/Common/autoload.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
>
> . 1 / 1 (100%)
>
> Time: 00:00.003, Memory: 8.00 MB
>
> There were 2 PHPUnit errors:
>
> 1) phpDocumentor\Reflection\FqsenTest::testValidFormats
> The data provider specified for phpDocumentor\Reflection\FqsenTest::testValidFormats is invalid
> Data Provider method phpDocumentor\Reflection\FqsenTest::validFqsenProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/unit/FqsenTest.php:28
>
> 2) phpDocumentor\Reflection\FqsenTest::testInValidFormats
> The data provider specified for phpDocumentor\Reflection\FqsenTest::testInValidFormats is invalid
> Data Provider method phpDocumentor\Reflection\FqsenTest::invalidFqsenProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/unit/FqsenTest.php:61
>
> --
>
> 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 9:
> - Element 'filter': This element is not expected.
>
>
> --
>
> There were 4 PHPUnit test runner deprecations:
>
> 1) Metadata found in doc-comment for method phpDocumentor\Reflection\FqsenTest::testValidFormats(). 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 class phpDocumentor\Reflection\FqsenTest. 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 phpDocumentor\Reflection\FqsenTest::testInValidFormats(). 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 phpDocumentor\Reflection\FqsenTest::testToString(). 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: 1, Assertions: 1, Errors: 2, Warnings: 1, Deprecations: 4.
> make[1]: *** [debian/rules:10: override_dh_auto_test] Error 2
The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/1/php-phpdocumentor-reflection-common/php-phpdocumentor-reflection-common_2.2.0-2+rebuild1714790878_amd64-2024-05-04T02:47:59Z.build
More information about the pkg-php-pear
mailing list