[pkg-php-pear] Bug#1070587: php-phpdocumentor-reflection-docblock: FTBFS with phpunit 11: There were 12 PHPUnit errors

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


Source: php-phpdocumentor-reflection-docblock
Version: 5.4.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-docblock 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):
> There were 12 PHPUnit errors:
> 
> 1) phpDocumentor\Reflection\DocBlock\DescriptionFactoryTest::testDescriptionCanParseASimpleString
> The data provider specified for phpDocumentor\Reflection\DocBlock\DescriptionFactoryTest::testDescriptionCanParseASimpleString is invalid
> Data Provider method phpDocumentor\Reflection\DocBlock\DescriptionFactoryTest::provideSimpleExampleDescriptions() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlock/DescriptionFactoryTest.php:48
> 
> 2) phpDocumentor\Reflection\DocBlock\DescriptionFactoryTest::testEscapeSequences
> The data provider specified for phpDocumentor\Reflection\DocBlock\DescriptionFactoryTest::testEscapeSequences is invalid
> Data Provider method phpDocumentor\Reflection\DocBlock\DescriptionFactoryTest::provideEscapeSequences() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlock/DescriptionFactoryTest.php:66
> 
> 3) phpDocumentor\Reflection\DocBlock\StandardTagFactoryTest::testValidFormattedTags
> The data provider specified for phpDocumentor\Reflection\DocBlock\StandardTagFactoryTest::testValidFormattedTags is invalid
> Data Provider method phpDocumentor\Reflection\DocBlock\StandardTagFactoryTest::validTagProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlock/StandardTagFactoryTest.php:469
> 
> 4) phpDocumentor\Reflection\DocBlock\StandardTagFactoryTest::testInValidFormattedTags
> The data provider specified for phpDocumentor\Reflection\DocBlock\StandardTagFactoryTest::testInValidFormattedTags is invalid
> Data Provider method phpDocumentor\Reflection\DocBlock\StandardTagFactoryTest::invalidTagProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlock/StandardTagFactoryTest.php:534
> 
> 5) phpDocumentor\Reflection\DocBlock\Tags\AuthorTest::testFactoryMethod
> The data provider specified for phpDocumentor\Reflection\DocBlock\Tags\AuthorTest::testFactoryMethod is invalid
> Data Provider method phpDocumentor\Reflection\DocBlock\Tags\AuthorTest::authorTagProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlock/Tags/AuthorTest.php:155
> 
> 6) phpDocumentor\Reflection\DocBlock\Tags\ExampleTest::testFactoryMethod
> The data provider specified for phpDocumentor\Reflection\DocBlock\Tags\ExampleTest::testFactoryMethod is invalid
> Data Provider method phpDocumentor\Reflection\DocBlock\Tags\ExampleTest::tagContentProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlock/Tags/ExampleTest.php:153
> 
> 7) phpDocumentor\Reflection\DocBlock\Tags\ExampleTest::testValidatesArguments
> The data provider specified for phpDocumentor\Reflection\DocBlock\Tags\ExampleTest::testValidatesArguments is invalid
> Data Provider method phpDocumentor\Reflection\DocBlock\Tags\ExampleTest::invalidExampleProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlock/Tags/ExampleTest.php:228
> 
> 8) phpDocumentor\Reflection\DocBlock\Tags\Factory\MethodFactoryTest::testIsCreated
> The data provider specified for phpDocumentor\Reflection\DocBlock\Tags\Factory\MethodFactoryTest::testIsCreated is invalid
> Data Provider method phpDocumentor\Reflection\DocBlock\Tags\Factory\MethodFactoryTest::tagProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlock/Tags/Factory/MethodFactoryTest.php:33
> 
> 9) phpDocumentor\Reflection\DocBlock\Tags\Factory\ParamFactoryTest::testParamIsCreated
> The data provider specified for phpDocumentor\Reflection\DocBlock\Tags\Factory\ParamFactoryTest::testParamIsCreated is invalid
> Data Provider method phpDocumentor\Reflection\DocBlock\Tags\Factory\ParamFactoryTest::paramInputProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlock/Tags/Factory/ParamFactoryTest.php:38
> 
> 10) phpDocumentor\Reflection\DocBlock\Tags\MethodTest::testCollectionReturnTypes
> The data provider specified for phpDocumentor\Reflection\DocBlock\Tags\MethodTest::testCollectionReturnTypes is invalid
> Data Provider method phpDocumentor\Reflection\DocBlock\Tags\MethodTest::collectionReturnTypesProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlock/Tags/MethodTest.php:435
> 
> 11) phpDocumentor\Reflection\DocBlockFactoryTest::testSummaryAndDescriptionAreSeparated
> The data provider specified for phpDocumentor\Reflection\DocBlockFactoryTest::testSummaryAndDescriptionAreSeparated is invalid
> Data Provider method phpDocumentor\Reflection\DocBlockFactoryTest::provideSummaryAndDescriptions() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/DocBlockFactoryTest.php:133
> 
> 12) phpDocumentor\Reflection\Exception\PcreExceptionTest::testErrorConversion
> The data provider specified for phpDocumentor\Reflection\Exception\PcreExceptionTest::testErrorConversion is invalid
> Data Provider method phpDocumentor\Reflection\Exception\PcreExceptionTest::errorCodeProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/Exception/PcreExceptionTest.php:26
> 
> --
> 
> There were 3 PHPUnit test runner warnings:
> 
> 1) No tests found in class "phpDocumentor\Reflection\DocBlock\Tags\Factory\MethodFactoryTest".
> 
> 2) No tests found in class "phpDocumentor\Reflection\DocBlock\Tags\Factory\ParamFactoryTest".
> 
> 3) No tests found in class "phpDocumentor\Reflection\Exception\PcreExceptionTest".
> 
> --
> 
> There were 378 PHPUnit test runner deprecations:
> 
...
> 
> --
> 
> There was 1 risky test:
> 
> 1) phpDocumentor\Reflection\PregSplitTest::testPregSplitThrowsOnError
> Test code or tested code did not remove its own error handlers
> 
> /<<PKGBUILDDIR>>/tests/unit/PregSplitTest.php:41
> 
> ERRORS!
> Tests: 389, Assertions: 752, Errors: 12, Warnings: 3, Deprecations: 381, Skipped: 2, Risky: 1.
> make[1]: *** [debian/rules:19: 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-docblock/php-phpdocumentor-reflection-docblock_5.4.0-2+rebuild1714790902_amd64-2024-05-04T02:48:23Z.build



More information about the pkg-php-pear mailing list