Source: php-guzzlehttp-promises
Version: 1.5.3-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-guzzlehttp-promises 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
> 
> ..D............................................................  63 / 154 ( 
> 40%)
> ............................................................... 126 / 154 ( 
> 81%)
> ............................                                    154 / 154 
> (100%)
> 
> Time: 00:00.032, Memory: 10.00 MB
> 
> There were 2 PHPUnit errors:
> 
> 1) 
> GuzzleHttp\Promise\Tests\CoroutineTest::testShouldProxyPromiseMethodsToResultPromise
> The data provider specified for 
> GuzzleHttp\Promise\Tests\CoroutineTest::testShouldProxyPromiseMethodsToResultPromise
>  is invalid
> Data Provider method 
> GuzzleHttp\Promise\Tests\CoroutineTest::promiseInterfaceMethodProvider() is 
> not static
> 
> /<<PKGBUILDDIR>>/tests/CoroutineTest.php:26
> 
> 2) GuzzleHttp\Promise\Tests\UtilsTest::testRejectsParentExceptionWhenException
> The data provider specified for 
> GuzzleHttp\Promise\Tests\UtilsTest::testRejectsParentExceptionWhenException 
> is invalid
> Data Provider method 
> GuzzleHttp\Promise\Tests\UtilsTest::rejectsParentExceptionProvider() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/UtilsTest.php:308
> 
> --
> 
> There were 8 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 
> GuzzleHttp\Promise\Tests\CoroutineTest::testShouldProxyPromiseMethodsToResultPromise().
>  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 
> GuzzleHttp\Promise\Tests\EachPromiseTest. 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 class 
> GuzzleHttp\Promise\Tests\FulfilledPromiseTest. 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 class 
> GuzzleHttp\Promise\Tests\PromiseTest. 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 class 
> GuzzleHttp\Promise\Tests\RejectedPromiseTest. 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 class 
> GuzzleHttp\Promise\Tests\RejectionExceptionTest. 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 
> GuzzleHttp\Promise\Tests\UtilsTest::testRejectsParentExceptionWhenException().
>  Metadata in doc-comments is deprecated and will no longer be supported in 
> PHPUnit 12. Update your test code to use attributes instead.
> 
> --
> 
> 1 test triggered 2 PHPUnit deprecations:
> 
> 1) 
> GuzzleHttp\Promise\Tests\CoroutineTest::testShouldCancelResultPromiseAndOutsideCurrentPromise
> * getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> * getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 
> without replacement.
> 
> /<<PKGBUILDDIR>>/tests/CoroutineTest.php:51
> 
> ERRORS!
> Tests: 154, Assertions: 300, Errors: 2, Deprecations: 9.
> make[1]: *** [Makefile:4: test] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test: error: make -j1 test returned exit code 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-guzzlehttp-promises/php-guzzlehttp-promises_1.5.3-2+rebuild1714367438_amd64-2024-04-29T05:10:39Z.build

Reply via email to