[pkg-php-pear] Bug#1070507: doctrine: FTBFS with phpunit 11: There were 7 PHPUnit errors

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


Source: doctrine
Version: 2.19.4+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,
doctrine 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
...
> 
> There were 7 PHPUnit errors:
> 
> 1) Doctrine\Tests\ORM\Functional\ParserResultSerializationTest::testSerializeParserResult
> The data provider specified for Doctrine\Tests\ORM\Functional\ParserResultSerializationTest::testSerializeParserResult is invalid
> Data Provider method Doctrine\Tests\ORM\Functional\ParserResultSerializationTest::provideToSerializedAndBack() is not static
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Functional/ParserResultSerializationTest.php:38
> 
> 2) Doctrine\Tests\ORM\Functional\Ticket\GH10450Test::testDuplicatePrivateFieldsShallBeRejected
> The data provider specified for Doctrine\Tests\ORM\Functional\Ticket\GH10450Test::testDuplicatePrivateFieldsShallBeRejected is invalid
> Data Provider method Doctrine\Tests\ORM\Functional\Ticket\GH10450Test::classesThatOverrideFieldNames() is not static
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Functional/Ticket/GH10450Test.php:19
> 
> 3) Doctrine\Tests\ORM\Functional\Ticket\GH10454Test::testProtectedPropertyMustNotBeInheritedAndReconfigured
> The data provider specified for Doctrine\Tests\ORM\Functional\Ticket\GH10454Test::testProtectedPropertyMustNotBeInheritedAndReconfigured is invalid
> Data Provider method Doctrine\Tests\ORM\Functional\Ticket\GH10454Test::classesThatOverrideFieldNames() is not static
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Functional/Ticket/GH10454Test.php:19
> 
> 4) Doctrine\Tests\ORM\Functional\Ticket\GH10566Test::testInsertion
> The data provider specified for Doctrine\Tests\ORM\Functional\Ticket\GH10566Test::testInsertion is invalid
> Data Provider method Doctrine\Tests\ORM\Functional\Ticket\GH10566Test::provideEntityClasses() is not static
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Functional/Ticket/GH10566Test.php:29
> 
> 5) Doctrine\Tests\ORM\Functional\Ticket\GH10566Test::testRemoval
> The data provider specified for Doctrine\Tests\ORM\Functional\Ticket\GH10566Test::testRemoval is invalid
> Data Provider method Doctrine\Tests\ORM\Functional\Ticket\GH10566Test::provideEntityClasses() is not static
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Functional/Ticket/GH10566Test.php:57
> 
> 6) Doctrine\Tests\ORM\Functional\Ticket\GH11199Test::testGH11199
> The data provider specified for Doctrine\Tests\ORM\Functional\Ticket\GH11199Test::testGH11199 is invalid
> Data Provider method Doctrine\Tests\ORM\Functional\Ticket\GH11199Test::dqlStatements() is not static
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Functional/Ticket/GH11199Test.php:38
> 
> 7) Doctrine\Tests\ORM\Tools\DebugTest::testExportParentAttributes
> The data provider specified for Doctrine\Tests\ORM\Tools\DebugTest::testExportParentAttributes is invalid
> Data Provider method Doctrine\Tests\ORM\Tools\DebugTest::provideAttributesCases() is not static
> 
> /<<PKGBUILDDIR>>/tests/Tests/ORM/Tools/DebugTest.php:103
> 
> --
> 
> There were 4 PHPUnit test runner warnings:
> 
> 1) No tests found in class "Doctrine\Tests\ORM\Functional\Ticket\GH10450Test".
> 
> 2) No tests found in class "Doctrine\Tests\ORM\Functional\Ticket\GH10454Test".
> 
> 3) No tests found in class "Doctrine\Tests\ORM\Functional\Ticket\GH10566Test".
> 
> 4) No tests found in class "Doctrine\Tests\ORM\Functional\Ticket\GH11199Test".
> 
> --
> 
> There were 1567 PHPUnit test runner deprecations:
> 
...
> 
> 83 tests triggered 100 PHPUnit deprecations:
> 
...
> 
> ERRORS!
> Tests: 3861, Assertions: 13588, Errors: 7, Warnings: 4, Deprecations: 1650, Skipped: 78, Incomplete: 2.
> make[1]: *** [debian/rules:36: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/doctrine/doctrine_2.19.4+dfsg-1+rebuild1714364450_amd64-2024-04-29T04:20:52Z.build



More information about the pkg-php-pear mailing list