[pkg-php-pear] Bug#1070537: php-doctrine-persistence: FTBFS with phpunit 11: There were 3 PHPUnit errors
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:14:43 BST 2024
Source: php-doctrine-persistence
Version: 3.3.2-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-doctrine-persistence 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 vendor/autoload.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
>
> .........DDDEDDDDD.......................D.DD.DDDDDDDDD........ 63 / 125 ( 50%)
> .............................................................. 125 / 125 (100%)
>
> Time: 00:00.032, Memory: 12.00 MB
>
> There were 3 PHPUnit errors:
>
> 1) Doctrine\Tests\Persistence\Mapping\ColocatedMappingDriverTest::testGetAllClassNames
> The data provider specified for Doctrine\Tests\Persistence\Mapping\ColocatedMappingDriverTest::testGetAllClassNames is invalid
> Data Provider method Doctrine\Tests\Persistence\Mapping\ColocatedMappingDriverTest::pathProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/ColocatedMappingDriverTest.php:58
>
> 2) Doctrine\Tests\Persistence\Mapping\SymfonyFileLocatorTest::testGetClassNamesWithCustomNsSeparator
> The data provider specified for Doctrine\Tests\Persistence\Mapping\SymfonyFileLocatorTest::testGetClassNamesWithCustomNsSeparator is invalid
> Data Provider method Doctrine\Tests\Persistence\Mapping\SymfonyFileLocatorTest::customNamespaceSeparatorProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/SymfonyFileLocatorTest.php:112
>
> 3) Doctrine\Tests\Persistence\Mapping\SymfonyFileLocatorTest::testFindMappingFileWithCustomNsSeparator
> The data provider specified for Doctrine\Tests\Persistence\Mapping\SymfonyFileLocatorTest::testFindMappingFileWithCustomNsSeparator is invalid
> Data Provider method Doctrine\Tests\Persistence\Mapping\SymfonyFileLocatorTest::customNamespaceLookupQueryProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/SymfonyFileLocatorTest.php:158
>
> --
>
> There were 12 PHPUnit test runner deprecations:
>
> 1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!
>
> 2) Metadata found in doc-comment for class Doctrine\Tests\Persistence\ManagerRegistryTest. 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 class Doctrine\Tests\Persistence\Mapping\ClassMetadataFactoryTest. 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 Doctrine\Tests\Persistence\Mapping\ClassMetadataFactoryTest::testWillIgnoreCacheEntriesThatAreNotMetadataInstances(). 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 Doctrine\Tests\Persistence\Mapping\ColocatedMappingDriverTest::testGetAllClassNames(). 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 Doctrine\Tests\Persistence\Mapping\DriverChainTest::testIsTransient(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 7) Metadata found in doc-comment for method Doctrine\Tests\Persistence\Mapping\DriverChainTest::testDefaultDriver(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 8) Metadata found in doc-comment for class Doctrine\Tests\Persistence\Mapping\RuntimeReflectionServiceTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 9) Metadata found in doc-comment for class Doctrine\Tests\Persistence\Mapping\StaticReflectionServiceTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 10) Metadata found in doc-comment for method Doctrine\Tests\Persistence\Mapping\SymfonyFileLocatorTest::testGetClassNamesWithCustomNsSeparator(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 11) Metadata found in doc-comment for method Doctrine\Tests\Persistence\Mapping\SymfonyFileLocatorTest::testFindMappingFileWithCustomNsSeparator(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 12) Metadata found in doc-comment for class Doctrine\Tests_PHP74\Persistence\Mapping\RuntimeReflectionServiceTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> --
>
> There was 1 error:
>
> 1) Doctrine\Tests\Persistence\Mapping\AbstractClassMetadataFactoryTest::testItSkipsTransientClasses
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php:22
>
> --
>
> 21 tests triggered 41 PHPUnit deprecations:
>
> 1) Doctrine\Tests\Persistence\ManagerRegistryTest::testGetRepository
> returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/ManagerRegistryTest.php:80
>
> 2) Doctrine\Tests\Persistence\ManagerRegistryTest::testGetRepositoryWithSpecificManagerName
> returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/ManagerRegistryTest.php:95
>
> 3) Doctrine\Tests\Persistence\ManagerRegistryTest::testGetRepositoryWithManagerDetection
> returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/ManagerRegistryTest.php:126
>
> 4) Doctrine\Tests\Persistence\Mapping\AbstractClassMetadataFactoryTest::testItSkipsTransientClasses
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php:17
>
> 5) Doctrine\Tests\Persistence\Mapping\AbstractClassMetadataFactoryTest::testItThrowsWhenAttemptingToGetMetadataForAnonymousClass
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php:42
>
> 6) Doctrine\Tests\Persistence\Mapping\AbstractClassMetadataFactoryTest::testAnonymousClassIsNotMistakenForShortAlias
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php:50
>
> 7) Doctrine\Tests\Persistence\Mapping\AbstractClassMetadataFactoryTest::testItThrowsWhenAttemptingToGetMetadataForShortAlias
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php:58
>
> 8) Doctrine\Tests\Persistence\Mapping\AbstractClassMetadataFactoryTest::testItThrowsWhenAttemptingToCheckTransientForShortAlias
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php:70
>
> 9) Doctrine\Tests\Persistence\Mapping\AbstractClassMetadataFactoryTest::testItGetsTheSameMetadataForBackslashedClassName
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/AbstractClassMetadataFactoryTest.php:82
>
> 10) Doctrine\Tests\Persistence\Mapping\DriverChainTest::testGatherAllClassNames
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/DriverChainTest.php:59
>
> 11) Doctrine\Tests\Persistence\Mapping\DriverChainTest::testDefaultDriver
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/DriverChainTest.php:94
>
> 12) Doctrine\Tests\Persistence\Mapping\DriverChainTest::testDefaultDriverGetAllClassNames
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/DriverChainTest.php:129
>
> 13) Doctrine\Tests\Persistence\Mapping\FileDriverTest::testGetElementFromGlobalFile
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/FileDriverTest.php:33
>
> 14) Doctrine\Tests\Persistence\Mapping\FileDriverTest::testGetElementFromFile
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/FileDriverTest.php:44
>
> 15) Doctrine\Tests\Persistence\Mapping\FileDriverTest::testGetElementUpdatesClassCache
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/FileDriverTest.php:57
>
> 16) Doctrine\Tests\Persistence\Mapping\FileDriverTest::testGetAllClassNamesGlobalBasename
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/FileDriverTest.php:76
>
> 17) Doctrine\Tests\Persistence\Mapping\FileDriverTest::testGetAllClassNamesFromMappingFile
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/FileDriverTest.php:92
>
> 18) Doctrine\Tests\Persistence\Mapping\FileDriverTest::testGetAllClassNamesBothSources
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/FileDriverTest.php:106
>
> 19) Doctrine\Tests\Persistence\Mapping\FileDriverTest::testGetAllClassNamesBothSourcesNoDupes
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/FileDriverTest.php:121
>
> 20) Doctrine\Tests\Persistence\Mapping\FileDriverTest::testIsNotTransient
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/FileDriverTest.php:141
>
> 21) Doctrine\Tests\Persistence\Mapping\FileDriverTest::testIsTransient
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use $double->willReturn() instead of $double->will($this->returnValue())
>
> /<<PKGBUILDDIR>>/tests/Persistence/Mapping/FileDriverTest.php:157
>
> ERRORS!
> Tests: 125, Assertions: 240, Errors: 4, Deprecations: 33.
> 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/0/php-doctrine-persistence/php-doctrine-persistence_3.3.2-2+rebuild1714366701_amd64-2024-04-29T04:58:22Z.build
More information about the pkg-php-pear
mailing list