Source: php-slim-psr7 Version: 1.6.1-3 Severity: normal Justification: FTBFS Tags: trixie sid ftbfs User: [email protected] Usertags: phpunit11
Hi, phpunit 11 is out and is now available in experimental. During a test rebuild, php-slim-psr7 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 2 PHPUnit errors: > > 1) Slim\Tests\Psr7\UploadedFileTest::testCreateFromGlobalsFromFilesSuperglobal > The data provider specified for > Slim\Tests\Psr7\UploadedFileTest::testCreateFromGlobalsFromFilesSuperglobal > is invalid > Data Provider method > Slim\Tests\Psr7\UploadedFileTest::providerCreateFromGlobals() is not static > > /<<PKGBUILDDIR>>/tests/UploadedFileTest.php:101 > > 2) Slim\Tests\Psr7\UploadedFileTest::testCreateFromGlobalsFromUserData > The data provider specified for > Slim\Tests\Psr7\UploadedFileTest::testCreateFromGlobalsFromUserData is invalid > Data Provider method > Slim\Tests\Psr7\UploadedFileTest::providerCreateFromGlobals() is not static > > /<<PKGBUILDDIR>>/tests/UploadedFileTest.php:114 > > -- > > There were 27 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 > Slim\Tests\Psr7\HeadersTest::testRemoveHeaderByIncompatibleStringWithRFC(). > 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 > Slim\Tests\Psr7\HeadersTest::testWithInvalidHeaderName(). 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 > Slim\Tests\Psr7\HeadersTest::testSetInvalidHeaderValue(). 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 > Slim\Tests\Psr7\MessageTest::testWithoutHeaderByIncompatibleStringWithRFC(). > 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 > Slim\Tests\Psr7\NonBufferedBodyTest::testWithHeader(). 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 > Slim\Tests\Psr7\NonBufferedBodyTest::testWithAddedHeader(). 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 > Slim\Tests\Psr7\NonBufferedBodyTest::testWithoutHeader(). 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 > Slim\Tests\Psr7\UploadedFileTest::testCreateFromGlobalsFromFilesSuperglobal(). > 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 > Slim\Tests\Psr7\UploadedFileTest::testCreateFromGlobalsFromUserData(). > 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 > Slim\Tests\Psr7\UploadedFileTest::testGetStream(). 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 > Slim\Tests\Psr7\UploadedFileTest::testMoveToNotWritable(). 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 > Slim\Tests\Psr7\UploadedFileTest::testMoveTo(). 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 > Slim\Tests\Psr7\UploadedFileTest::testMoveToSapiNonUploadedFile(). 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 > Slim\Tests\Psr7\UploadedFileTest::testMoveToSapiMoveUploadedFileFails(). > 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 > Slim\Tests\Psr7\UploadedFileTest::testMoveToCannotBeDoneTwice(). 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 > Slim\Tests\Psr7\UploadedFileTest::testMoveToAgain(). 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 > Slim\Tests\Psr7\UploadedFileTest::testMovedStream(). 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 > Slim\Tests\Psr7\NonBufferedBodyTest::testWithHeader(). 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 > Slim\Tests\Psr7\NonBufferedBodyTest::testWithAddedHeader(). 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 > Slim\Tests\Psr7\NonBufferedBodyTest::testWithoutHeader(). 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 > Slim\Tests\Psr7\NonBufferedBodyTest::testWithAddedHeader(). Metadata in > doc-comments is deprecated and will no longer be supported in PHPUnit 12. > Update your test code to use attributes instead. > > 23) Metadata found in doc-comment for method > Slim\Tests\Psr7\NonBufferedBodyTest::testWithHeader(). Metadata in > doc-comments is deprecated and will no longer be supported in PHPUnit 12. > Update your test code to use attributes instead. > > 24) Metadata found in doc-comment for method > Slim\Tests\Psr7\NonBufferedBodyTest::testWithoutHeader(). Metadata in > doc-comments is deprecated and will no longer be supported in PHPUnit 12. > Update your test code to use attributes instead. > > 25) Metadata found in doc-comment for method > Slim\Tests\Psr7\NonBufferedBodyTest::testWithoutHeader(). Metadata in > doc-comments is deprecated and will no longer be supported in PHPUnit 12. > Update your test code to use attributes instead. > > 26) Metadata found in doc-comment for method > Slim\Tests\Psr7\NonBufferedBodyTest::testWithHeader(). Metadata in > doc-comments is deprecated and will no longer be supported in PHPUnit 12. > Update your test code to use attributes instead. > > 27) Metadata found in doc-comment for method > Slim\Tests\Psr7\NonBufferedBodyTest::testWithAddedHeader(). Metadata in > doc-comments is deprecated and will no longer be supported in PHPUnit 12. > Update your test code to use attributes instead. > > -- > > 4 tests triggered 8 PHPUnit deprecations: > > 1) Slim\Tests\Psr7\ResponseTest::testWithStatusValidReasonPhraseObject > * MockBuilder::addMethods() 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/ResponseTest.php:142 > > 2) Slim\Tests\Psr7\UriTest::testWithHostValidObject > * MockBuilder::addMethods() 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/UriTest.php:134 > > 3) Slim\Tests\Psr7\UriTest::testWithQueryValidObject > * MockBuilder::addMethods() 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/UriTest.php:292 > > 4) Slim\Tests\Psr7\UriTest::testWithFragmentValidObject > * MockBuilder::addMethods() 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/UriTest.php:344 > > ERRORS! > Tests: 314, Assertions: 434, Errors: 2, Deprecations: 31, Skipped: 8. > make[1]: *** [debian/rules:22: override_dh_auto_test] Error 2 The full build log is available at http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-slim-psr7/php-slim-psr7_1.6.1-3+rebuild1714377093_amd64-2024-04-29T07:51:33Z.build

