Source: php-doctrine-cache
Version: 2.2.0-2
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-p...@lists.alioth.debian.org
Usertags: phpunit11

Hi,

phpunit 11 is out and is now available in experimental. During a test rebuild,
php-doctrine-cache 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>>'
> memcached -d -u memcache
> redis-server --daemonize yes
> phpunit --include-path lib --bootstrap vendor/autoload.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> 
> ...........S.S......DDEED........................SSSSSSSSSSSSSS  63 / 179 ( 
> 35%)
> SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 126 / 179 ( 
> 70%)
> SSSSSSSS...............S...S...........S.S.......SS..           179 / 179 
> (100%)
> 
> Time: 00:12.044, Memory: 10.00 MB
> 
> There were 6 PHPUnit errors:
> 
> 1) Doctrine\Tests\Common\Cache\ArrayCacheTest::testSetContainsFetchDelete
> The data provider specified for 
> Doctrine\Tests\Common\Cache\ArrayCacheTest::testSetContainsFetchDelete is 
> invalid
> Data Provider method 
> Doctrine\Tests\Common\Cache\ArrayCacheTest::provideDataToCache() is not static
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/ArrayCacheTest.php:28
> 
> 2) Doctrine\Tests\Common\Cache\ArrayCacheTest::testUpdateExistingEntry
> The data provider specified for 
> Doctrine\Tests\Common\Cache\ArrayCacheTest::testUpdateExistingEntry is invalid
> Data Provider method 
> Doctrine\Tests\Common\Cache\ArrayCacheTest::provideDataToCache() is not static
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/ArrayCacheTest.php:52
> 
> 3) Doctrine\Tests\Common\Cache\ArrayCacheTest::testCanHandleSpecialCacheIds
> The data provider specified for 
> Doctrine\Tests\Common\Cache\ArrayCacheTest::testCanHandleSpecialCacheIds is 
> invalid
> Data Provider method 
> Doctrine\Tests\Common\Cache\ArrayCacheTest::provideCacheIds() is not static
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/ArrayCacheTest.php:216
> 
> 4) 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::testSetContainsFetchDelete
> The data provider specified for 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::testSetContainsFetchDelete
>  is invalid
> Data Provider method 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::provideDataToCache() 
> is not static
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/Psr6/DoctrineProviderTest.php:28
> 
> 5) 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::testUpdateExistingEntry
> The data provider specified for 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::testUpdateExistingEntry
>  is invalid
> Data Provider method 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::provideDataToCache() 
> is not static
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/Psr6/DoctrineProviderTest.php:52
> 
> 6) 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::testCanHandleSpecialCacheIds
> The data provider specified for 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::testCanHandleSpecialCacheIds
>  is invalid
> Data Provider method 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::provideCacheIds() is 
> not static
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/Psr6/DoctrineProviderTest.php:216
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) Class Doctrine\Tests\Common\Cache\CacheTest declared in 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/CacheTest.php is abstract
> 
> --
> 
> There were 22 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 method 
> Doctrine\Tests\Common\Cache\ArrayCacheTest::testSetContainsFetchDelete(). 
> 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 
> Doctrine\Tests\Common\Cache\ArrayCacheTest::testUpdateExistingEntry(). 
> 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\Common\Cache\ArrayCacheTest::testCanHandleSpecialCacheIds(). 
> 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\Common\Cache\ArrayCacheTest::testFetchingANonExistingKeyShouldNeverCauseANoticeOrWarning().
>  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 
> Cache\IntegrationTests\CachePoolTest::setupService(). 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 
> Cache\IntegrationTests\CachePoolTest::tearDownService(). 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 method 
> Doctrine\Tests\Common\Cache\Psr6\CacheAdapterTest::testExpiration(). 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 method 
> Doctrine\Tests\Common\Cache\Psr6\CacheAdapterTest::testGetItemInvalidKeys(). 
> 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\Common\Cache\Psr6\CacheAdapterTest::testGetItemsInvalidKeys(). 
> 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\Common\Cache\Psr6\CacheAdapterTest::testHasItemInvalidKeys(). 
> 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 method 
> Doctrine\Tests\Common\Cache\Psr6\CacheAdapterTest::testDeleteItemInvalidKeys().
>  Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> 13) Metadata found in doc-comment for method 
> Doctrine\Tests\Common\Cache\Psr6\CacheAdapterTest::testDeleteItemsInvalidKeys().
>  Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> 14) Metadata found in doc-comment for method 
> Doctrine\Tests\Common\Cache\Psr6\CacheAdapterTest::testHasItemReturnsFalseWhenDeferredItemIsExpired().
>  Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> 15) Metadata found in doc-comment for method 
> Doctrine\Tests\Common\Cache\Psr6\CacheAdapterTest::testWithWrappedSymfonyCache().
>  Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> 16) Metadata found in doc-comment for method 
> Doctrine\Tests\Common\Cache\Psr6\CacheAdapterTest::testNamespacingFeatureIsPreservedWithSymfonyDoctrineProvider().
>  Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> 17) Metadata found in doc-comment for method 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::testSetContainsFetchDelete().
>  Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> 18) Metadata found in doc-comment for method 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::testUpdateExistingEntry().
>  Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> 19) Metadata found in doc-comment for method 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::testCanHandleSpecialCacheIds().
>  Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> 20) Metadata found in doc-comment for method 
> Doctrine\Tests\Common\Cache\Psr6\DoctrineProviderTest::testFetchingANonExistingKeyShouldNeverCauseANoticeOrWarning().
>  Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> 21) Metadata found in doc-comment for method 
> Doctrine\Tests\Common\Cache\Psr6\CacheAdapterTest::setupService(). Metadata 
> in doc-comments is deprecated and will no longer be supported in PHPUnit 12. 
> Update your test code to use attributes instead.
> 
> 22) Metadata found in doc-comment for method 
> Doctrine\Tests\Common\Cache\Psr6\CacheAdapterTest::tearDownService(). 
> Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> --
> 
> There were 2 errors:
> 
> 1) Doctrine\Tests\Common\Cache\CacheProviderTest::testSaveMultipleNoFail
> Error: Call to undefined method 
> Doctrine\Tests\Common\Cache\CacheProviderTest::at()
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/CacheProviderTest.php:93
> 
> 2) Doctrine\Tests\Common\Cache\CacheProviderTest::testDeleteMultipleNoFail
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\MockBuilder::setMethods()
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/CacheProviderTest.php:114
> 
> --
> 
> 4 tests triggered 8 PHPUnit deprecations:
> 
> 1) 
> Doctrine\Tests\Common\Cache\CacheProviderTest::testFetchMultiWillFilterNonRequestedKeys
> * getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> * returnValue() is deprecated and will be removed in PHPUnit 12. Use 
> $double->willReturn() instead of $double->will($this->returnValue())
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/CacheProviderTest.php:13
> 
> 2) 
> Doctrine\Tests\Common\Cache\CacheProviderTest::testFailedDeleteAllDoesNotChangeNamespaceVersion
> * getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> * 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/Doctrine/Tests/Common/Cache/CacheProviderTest.php:41
> 
> 3) Doctrine\Tests\Common\Cache\CacheProviderTest::testSaveMultipleNoFail
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/CacheProviderTest.php:79
> 
> 4) 
> Doctrine\Tests\Common\Cache\CacheProviderTest::testInvalidNamespaceVersionCacheEntry
> getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Cache/CacheProviderTest.php:133
> 
> ERRORS!
> Tests: 179, Assertions: 311, Errors: 8, Warnings: 1, Deprecations: 26, 
> Skipped: 93.
> make[1]: *** [debian/rules:25: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-doctrine-cache/php-doctrine-cache_2.2.0-2+rebuild1714366353_amd64-2024-04-29T04:52:33Z.build

Reply via email to