Source: php-slim Version: 3.12.4-2 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 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 10 PHPUnit errors: > > 1) Slim\Tests\Handlers\ErrorTest::testError > The data provider specified for Slim\Tests\Handlers\ErrorTest::testError is > invalid > Data Provider method Slim\Tests\Handlers\ErrorTest::errorProvider() is not > static > > /<<PKGBUILDDIR>>/tests/Handlers/ErrorTest.php:39 > > 2) Slim\Tests\Handlers\ErrorTest::testErrorDisplayDetails > The data provider specified for > Slim\Tests\Handlers\ErrorTest::testErrorDisplayDetails is invalid > Data Provider method Slim\Tests\Handlers\ErrorTest::errorProvider() is not > static > > /<<PKGBUILDDIR>>/tests/Handlers/ErrorTest.php:57 > > 3) Slim\Tests\Handlers\NotAllowedTest::testInvalidMethod > The data provider specified for > Slim\Tests\Handlers\NotAllowedTest::testInvalidMethod is invalid > Data Provider method > Slim\Tests\Handlers\NotAllowedTest::invalidMethodProvider() is not static > > /<<PKGBUILDDIR>>/tests/Handlers/NotAllowedTest.php:35 > > 4) Slim\Tests\Handlers\NotFoundTest::testNotFound > The data provider specified for > Slim\Tests\Handlers\NotFoundTest::testNotFound is invalid > Data Provider method Slim\Tests\Handlers\NotFoundTest::notFoundProvider() is > not static > > /<<PKGBUILDDIR>>/tests/Handlers/NotFoundTest.php:36 > > 5) Slim\Tests\Handlers\PhpErrorTest::testPhpError > The data provider specified for > Slim\Tests\Handlers\PhpErrorTest::testPhpError is invalid > Data Provider method Slim\Tests\Handlers\PhpErrorTest::phpErrorProvider() is > not static > > /<<PKGBUILDDIR>>/tests/Handlers/PhpErrorTest.php:39 > > 6) Slim\Tests\Handlers\PhpErrorTest::testPhpErrorDisplayDetails > The data provider specified for > Slim\Tests\Handlers\PhpErrorTest::testPhpErrorDisplayDetails is invalid > Data Provider method Slim\Tests\Handlers\PhpErrorTest::phpErrorProvider() is > not static > > /<<PKGBUILDDIR>>/tests/Handlers/PhpErrorTest.php:57 > > 7) Slim\Tests\Handlers\PhpErrorTest::testPhpError5 > The data provider specified for > Slim\Tests\Handlers\PhpErrorTest::testPhpError5 is invalid > Data Provider method Slim\Tests\Handlers\PhpErrorTest::phpErrorProvider() is > not static > > /<<PKGBUILDDIR>>/tests/Handlers/PhpErrorTest.php:92 > > 8) Slim\Tests\Handlers\PhpErrorTest::testPhpErrorDisplayDetails5 > The data provider specified for > Slim\Tests\Handlers\PhpErrorTest::testPhpErrorDisplayDetails5 is invalid > Data Provider method Slim\Tests\Handlers\PhpErrorTest::phpErrorProvider() is > not static > > /<<PKGBUILDDIR>>/tests/Handlers/PhpErrorTest.php:115 > > 9) > Slim\Tests\Http\UploadedFilesTest::testCreateFromEnvironmentFromFilesSuperglobal > The data provider specified for > Slim\Tests\Http\UploadedFilesTest::testCreateFromEnvironmentFromFilesSuperglobal > is invalid > Data Provider method > Slim\Tests\Http\UploadedFilesTest::providerCreateFromEnvironment() is not > static > > /<<PKGBUILDDIR>>/tests/Http/UploadedFilesTest.php:64 > > 10) Slim\Tests\Http\UploadedFilesTest::testCreateFromEnvironmentFromUserData > The data provider specified for > Slim\Tests\Http\UploadedFilesTest::testCreateFromEnvironmentFromUserData is > invalid > Data Provider method > Slim\Tests\Http\UploadedFilesTest::providerCreateFromEnvironment() is not > static > > /<<PKGBUILDDIR>>/tests/Http/UploadedFilesTest.php:77 > > -- > > There were 3 PHPUnit test runner warnings: > > 1) Class CallableTest cannot be found in > /<<PKGBUILDDIR>>/tests/Mocks/CallableTest.php > > 2) Class InvocationStrategyTest cannot be found in > /<<PKGBUILDDIR>>/tests/Mocks/InvocationStrategyTest.php > > 3) Class InvokableTest cannot be found in > /<<PKGBUILDDIR>>/tests/Mocks/InvokableTest.php > > -- > > There were 34 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\AppTest::testExceptionPhpErrorHandlerDoesNotDisplayErrorDetails(). > 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\AppTest::testRunThrowable(). 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\Handlers\ErrorTest::testError(). 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\Handlers\ErrorTest::testErrorDisplayDetails(). 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\Handlers\NotAllowedTest::testInvalidMethod(). 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\Handlers\NotFoundTest::testNotFound(). 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\Handlers\PhpErrorTest::testPhpError(). 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\Handlers\PhpErrorTest::testPhpErrorDisplayDetails(). 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\Handlers\PhpErrorTest::testNotFoundContentType(). 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\Handlers\PhpErrorTest::testPhpError5(). 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\Handlers\PhpErrorTest::testPhpErrorDisplayDetails5(). 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\Handlers\PhpErrorTest::testNotFoundContentType5(). 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\Http\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. > > 15) Metadata found in doc-comment for method > Slim\Tests\Http\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. > > 16) Metadata found in doc-comment for method > Slim\Tests\Http\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. > > 17) Metadata found in doc-comment for method > Slim\Tests\Http\UploadedFilesTest::testCreateFromEnvironmentFromFilesSuperglobal(). > 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\Http\UploadedFilesTest::testCreateFromEnvironmentFromUserData(). > 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\Http\UploadedFilesTest::testGetStream(). 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\Http\UploadedFilesTest::testMoveToNotWritable(). 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\Http\UploadedFilesTest::testMoveTo(). 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\Http\UploadedFilesTest::testMoveToCannotBeDoneTwice(). 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\Http\UploadedFilesTest::testMoveToAgain(). 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\Http\UploadedFilesTest::testMovedStream(). 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\Http\UriTest::testCreateEnvironmentWithNoHostHeader(). 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\Http\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\Http\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. > > 28) Metadata found in doc-comment for method > Slim\Tests\Http\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. > > 29) Metadata found in doc-comment for method > Slim\Tests\Http\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. > > 30) Metadata found in doc-comment for method > Slim\Tests\Http\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. > > 31) Metadata found in doc-comment for method > Slim\Tests\Http\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. > > 32) Metadata found in doc-comment for method > Slim\Tests\Http\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. > > 33) Metadata found in doc-comment for method > Slim\Tests\Http\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. > > 34) Metadata found in doc-comment for method > Slim\Tests\Http\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. > > -- > > There were 13 errors: > > 1) Slim\Tests\AppTest::testInvokeWithPimpleCallable > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/AppTest.php:1617 > > 2) Slim\Tests\AppTest::testRespondIndeterminateLength > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/AppTest.php:2086 > > 3) Slim\Tests\AppTest::testExceptionErrorHandlerDoesNotDisplayErrorDetails > Error: Call to undefined method Slim\Tests\AppTest::assertNotRegExp() > > /<<PKGBUILDDIR>>/tests/AppTest.php:2238 > > 4) Slim\Tests\AppTest::testExceptionPhpErrorHandlerDoesNotDisplayErrorDetails > Error: Call to undefined method Slim\Tests\AppTest::assertNotRegExp() > > /<<PKGBUILDDIR>>/tests/AppTest.php:2277 > > 5) Slim\Tests\AppTest::testExceptionErrorHandlerDisplaysErrorDetails > Error: Call to undefined method Slim\Tests\AppTest::assertRegExp() > > /<<PKGBUILDDIR>>/tests/AppTest.php:2475 > > 6) Slim\Tests\DeferredCallableTest::testItBindsClosuresToContainer > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/DeferredCallableTest.php:30 > > 7) Slim\Tests\Handlers\ErrorTest::testPreviousException > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Handlers/ErrorTest.php:90 > > 8) Slim\Tests\Handlers\NotAllowedTest::testNotFoundContentType > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Handlers/NotAllowedTest.php:63 > > 9) Slim\Tests\Handlers\NotFoundTest::testNotFoundContentType > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Handlers/NotFoundTest.php:50 > > 10) Slim\Tests\Handlers\PhpErrorTest::testNotFoundContentType > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Handlers/PhpErrorTest.php:76 > > 11) Slim\Tests\Http\RequestTest::testGetRequestTargetWithSlimPsr7Uri > Error: Call to undefined method Slim\Tests\Http\RequestTest::prophesize() > > /<<PKGBUILDDIR>>/tests/Http/RequestTest.php:458 > /usr/bin/phpunit:104 > > 12) Slim\Tests\Http\RequestTest::testGetRequestTargetWithNonSlimPsr7Uri > Error: Call to undefined method Slim\Tests\Http\RequestTest::prophesize() > > /<<PKGBUILDDIR>>/tests/Http/RequestTest.php:477 > /usr/bin/phpunit:104 > > 13) Slim\Tests\Http\UploadedFilesTest::testMoveToStream > Error: Call to undefined method > Slim\Tests\Http\UploadedFilesTest::assertFileNotExists() > > /<<PKGBUILDDIR>>/tests/Http/UploadedFilesTest.php:231 > /usr/bin/phpunit:104 > > -- > > There were 2 failures: > > 1) Slim\Tests\ContainerTest::testGetWithErrorThrownByFactoryClosure > Failed asserting that exception of type "Error" matches expected exception > "InvalidArgumentException". Message was: "Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods()" at > /<<PKGBUILDDIR>>/tests/ContainerTest.php:76 > . > > 2) Slim\Tests\Handlers\ErrorTest::testNotFoundContentType > Failed asserting that exception of type "Error" matches expected exception > "UnexpectedValueException". Message was: "Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods()" at > /<<PKGBUILDDIR>>/tests/Handlers/ErrorTest.php:73 > . > > -- > > 3 tests triggered 5 PHPUnit deprecations: > > 1) Slim\Tests\Handlers\AbstractHandlerTest::testHalfValidContentType > * returnValue() is deprecated and will be removed in PHPUnit 12. Use > $double->willReturn() instead of $double->will($this->returnValue()) > > * getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 > without replacement. > > /<<PKGBUILDDIR>>/tests/Handlers/AbstractHandlerTest.php:16 > > 2) > Slim\Tests\Handlers\AbstractHandlerTest::testAcceptableMediaTypeIsNotFirstInList > getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 > without replacement. > > /<<PKGBUILDDIR>>/tests/Handlers/AbstractHandlerTest.php:48 > > 3) Slim\Tests\Handlers\NotAllowedTest::testOptions > * 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/Handlers/NotAllowedTest.php:49 > > ERRORS! > Tests: 565, Assertions: 844, Errors: 23, Failures: 2, Warnings: 3, > Deprecations: 50, Skipped: 2. > make[1]: *** [debian/rules:21: override_dh_auto_test] Error 2 The full build log is available at http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-slim/php-slim_3.12.4-2+rebuild1714377064_amd64-2024-04-29T07:51:05Z.build

