Source: php-nikic-fast-route
Version: 1.3.0-4
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-nikic-fast-route 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>>'
> # keep in sync with debian/tests/run-upstream-tests
> phpunit --do-not-cache-result --bootstrap test/autoload.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
> 
> ....................S..                                           23 / 23 
> (100%)
> 
> Time: 00:00.005, Memory: 8.00 MB
> 
> There were 14 PHPUnit errors:
> 
> 1) FastRoute\Dispatcher\CharCountBasedTest::testFoundDispatches
> The data provider specified for 
> FastRoute\Dispatcher\CharCountBasedTest::testFoundDispatches is invalid
> Data Provider method 
> FastRoute\Dispatcher\CharCountBasedTest::provideFoundDispatchCases() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/CharCountBasedTest.php:34
> 
> 2) FastRoute\Dispatcher\CharCountBasedTest::testNotFoundDispatches
> The data provider specified for 
> FastRoute\Dispatcher\CharCountBasedTest::testNotFoundDispatches is invalid
> Data Provider method 
> FastRoute\Dispatcher\CharCountBasedTest::provideNotFoundDispatchCases() is 
> not static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/CharCountBasedTest.php:46
> 
> 3) FastRoute\Dispatcher\CharCountBasedTest::testMethodNotAllowedDispatches
> The data provider specified for 
> FastRoute\Dispatcher\CharCountBasedTest::testMethodNotAllowedDispatches is 
> invalid
> Data Provider method 
> FastRoute\Dispatcher\CharCountBasedTest::provideMethodNotAllowedDispatchCases()
>  is not static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/CharCountBasedTest.php:59
> 
> 4) FastRoute\Dispatcher\GroupCountBasedTest::testFoundDispatches
> The data provider specified for 
> FastRoute\Dispatcher\GroupCountBasedTest::testFoundDispatches is invalid
> Data Provider method 
> FastRoute\Dispatcher\GroupCountBasedTest::provideFoundDispatchCases() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/GroupCountBasedTest.php:34
> 
> 5) FastRoute\Dispatcher\GroupCountBasedTest::testNotFoundDispatches
> The data provider specified for 
> FastRoute\Dispatcher\GroupCountBasedTest::testNotFoundDispatches is invalid
> Data Provider method 
> FastRoute\Dispatcher\GroupCountBasedTest::provideNotFoundDispatchCases() is 
> not static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/GroupCountBasedTest.php:46
> 
> 6) FastRoute\Dispatcher\GroupCountBasedTest::testMethodNotAllowedDispatches
> The data provider specified for 
> FastRoute\Dispatcher\GroupCountBasedTest::testMethodNotAllowedDispatches is 
> invalid
> Data Provider method 
> FastRoute\Dispatcher\GroupCountBasedTest::provideMethodNotAllowedDispatchCases()
>  is not static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/GroupCountBasedTest.php:59
> 
> 7) FastRoute\Dispatcher\GroupPosBasedTest::testFoundDispatches
> The data provider specified for 
> FastRoute\Dispatcher\GroupPosBasedTest::testFoundDispatches is invalid
> Data Provider method 
> FastRoute\Dispatcher\GroupPosBasedTest::provideFoundDispatchCases() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/GroupPosBasedTest.php:34
> 
> 8) FastRoute\Dispatcher\GroupPosBasedTest::testNotFoundDispatches
> The data provider specified for 
> FastRoute\Dispatcher\GroupPosBasedTest::testNotFoundDispatches is invalid
> Data Provider method 
> FastRoute\Dispatcher\GroupPosBasedTest::provideNotFoundDispatchCases() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/GroupPosBasedTest.php:46
> 
> 9) FastRoute\Dispatcher\GroupPosBasedTest::testMethodNotAllowedDispatches
> The data provider specified for 
> FastRoute\Dispatcher\GroupPosBasedTest::testMethodNotAllowedDispatches is 
> invalid
> Data Provider method 
> FastRoute\Dispatcher\GroupPosBasedTest::provideMethodNotAllowedDispatchCases()
>  is not static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/GroupPosBasedTest.php:59
> 
> 10) FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches
> The data provider specified for 
> FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches is invalid
> Data Provider method 
> FastRoute\Dispatcher\MarkBasedTest::provideFoundDispatchCases() is not static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/MarkBasedTest.php:34
> 
> 11) FastRoute\Dispatcher\MarkBasedTest::testNotFoundDispatches
> The data provider specified for 
> FastRoute\Dispatcher\MarkBasedTest::testNotFoundDispatches is invalid
> Data Provider method 
> FastRoute\Dispatcher\MarkBasedTest::provideNotFoundDispatchCases() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/MarkBasedTest.php:46
> 
> 12) FastRoute\Dispatcher\MarkBasedTest::testMethodNotAllowedDispatches
> The data provider specified for 
> FastRoute\Dispatcher\MarkBasedTest::testMethodNotAllowedDispatches is invalid
> Data Provider method 
> FastRoute\Dispatcher\MarkBasedTest::provideMethodNotAllowedDispatchCases() is 
> not static
> 
> /<<PKGBUILDDIR>>/test/Dispatcher/MarkBasedTest.php:59
> 
> 13) FastRoute\RouteParser\StdTest::testParse
> The data provider specified for FastRoute\RouteParser\StdTest::testParse is 
> invalid
> Data Provider method FastRoute\RouteParser\StdTest::provideTestParse() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/RouteParser/StdTest.php:10
> 
> 14) FastRoute\RouteParser\StdTest::testParseError
> The data provider specified for FastRoute\RouteParser\StdTest::testParseError 
> is invalid
> Data Provider method FastRoute\RouteParser\StdTest::provideTestParseError() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/RouteParser/StdTest.php:18
> 
> --
> 
> There were 3 PHPUnit test runner warnings:
> 
> 1) Test results may not be as expected because the XML configuration file did 
> not pass validation:
> 
>   Line 12:
>   - Element 'phpunit', attribute 'backupStaticAttributes': The attribute 
> 'backupStaticAttributes' is not allowed.
>   - Element 'phpunit', attribute 'convertErrorsToExceptions': The attribute 
> 'convertErrorsToExceptions' is not allowed.
>   - Element 'phpunit', attribute 'convertNoticesToExceptions': The attribute 
> 'convertNoticesToExceptions' is not allowed.
>   - Element 'phpunit', attribute 'convertWarningsToExceptions': The attribute 
> 'convertWarningsToExceptions' is not allowed.
>   - Element 'phpunit', attribute 'syntaxCheck': The attribute 'syntaxCheck' 
> is not allowed.
> 
>   Line 19:
>   - Element 'filter': This element is not expected.
> 
> 
> 2) Class FastRoute\Dispatcher\DispatcherTest declared in 
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php is abstract
> 
> 3) No tests found in class "FastRoute\RouteParser\StdTest".
> 
> --
> 
> There were 14 PHPUnit test runner deprecations:
> 
> 1) Metadata found in doc-comment for method 
> FastRoute\Dispatcher\CharCountBasedTest::testFoundDispatches(). Metadata in 
> doc-comments is deprecated and will no longer be supported in PHPUnit 12. 
> Update your test code to use attributes instead.
> 
> 2) Metadata found in doc-comment for method 
> FastRoute\Dispatcher\CharCountBasedTest::testNotFoundDispatches(). 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 
> FastRoute\Dispatcher\CharCountBasedTest::testMethodNotAllowedDispatches(). 
> 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 
> FastRoute\Dispatcher\GroupCountBasedTest::testFoundDispatches(). 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 
> FastRoute\Dispatcher\GroupCountBasedTest::testNotFoundDispatches(). 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 
> FastRoute\Dispatcher\GroupCountBasedTest::testMethodNotAllowedDispatches(). 
> 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 
> FastRoute\Dispatcher\GroupPosBasedTest::testFoundDispatches(). 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 
> FastRoute\Dispatcher\GroupPosBasedTest::testNotFoundDispatches(). 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 
> FastRoute\Dispatcher\GroupPosBasedTest::testMethodNotAllowedDispatches(). 
> 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 
> FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches(). 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 
> FastRoute\Dispatcher\MarkBasedTest::testNotFoundDispatches(). 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 
> FastRoute\Dispatcher\MarkBasedTest::testMethodNotAllowedDispatches(). 
> 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 
> FastRoute\RouteParser\StdTest::testParse(). 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 
> FastRoute\RouteParser\StdTest::testParseError(). Metadata in doc-comments is 
> deprecated and will no longer be supported in PHPUnit 12. Update your test 
> code to use attributes instead.
> 
> ERRORS!
> Tests: 23, Assertions: 42, Errors: 14, Warnings: 3, Deprecations: 14, 
> Skipped: 1.
> 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/1/php-nikic-fast-route/php-nikic-fast-route_1.3.0-4+rebuild1714781565_amd64-2024-05-04T00:12:46Z.build

Reply via email to