[pkg-php-pear] Bug#1039809: php-nikic-fast-route: FTBFS with phpunit 10: make[1]: *** [debian/rules:21: override_dh_auto_test] Error 1
Athos Ribeiro
athoscribeiro at gmail.com
Wed Jun 28 22:17:49 BST 2023
Source: php-nikic-fast-route
Version: 1.3.0-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: phpunit
Hi,
We will start the phpunit 10 transition in unstable soon. During a test
rebuild, php-nikic-fast-route was found to FTBFS.
To reproduce this locally, you need to install the phpunit 10 package (and any
other dependency, which should also be available) 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 10.2.2 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 8.2.7
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
>
> D.............................................................. 63 / 204 ( 30%)
> ............................................................... 126 / 204 ( 61%)
> ......................................................S........ 189 / 204 ( 92%)
> ............... 204 / 204 (100%)
>
> Time: 00:00.027, Memory: 8.00 MB
>
> There were 2 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
>
> --
>
> 14 tests triggered 14 PHPUnit deprecations:
>
> 1) FastRoute\Dispatcher\CharCountBasedTest::testFoundDispatches
> Data Provider method FastRoute\Dispatcher\CharCountBasedTest::provideFoundDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:34
>
> 2) FastRoute\Dispatcher\CharCountBasedTest::testNotFoundDispatches
> Data Provider method FastRoute\Dispatcher\CharCountBasedTest::provideNotFoundDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:46
>
> 3) FastRoute\Dispatcher\CharCountBasedTest::testMethodNotAllowedDispatches
> Data Provider method FastRoute\Dispatcher\CharCountBasedTest::provideMethodNotAllowedDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:59
>
> 4) FastRoute\Dispatcher\GroupCountBasedTest::testFoundDispatches
> Data Provider method FastRoute\Dispatcher\GroupCountBasedTest::provideFoundDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:34
>
> 5) FastRoute\Dispatcher\GroupCountBasedTest::testNotFoundDispatches
> Data Provider method FastRoute\Dispatcher\GroupCountBasedTest::provideNotFoundDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:46
>
> 6) FastRoute\Dispatcher\GroupCountBasedTest::testMethodNotAllowedDispatches
> Data Provider method FastRoute\Dispatcher\GroupCountBasedTest::provideMethodNotAllowedDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:59
>
> 7) FastRoute\Dispatcher\GroupPosBasedTest::testFoundDispatches
> Data Provider method FastRoute\Dispatcher\GroupPosBasedTest::provideFoundDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:34
>
> 8) FastRoute\Dispatcher\GroupPosBasedTest::testNotFoundDispatches
> Data Provider method FastRoute\Dispatcher\GroupPosBasedTest::provideNotFoundDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:46
>
> 9) FastRoute\Dispatcher\GroupPosBasedTest::testMethodNotAllowedDispatches
> Data Provider method FastRoute\Dispatcher\GroupPosBasedTest::provideMethodNotAllowedDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:59
>
> 10) FastRoute\Dispatcher\MarkBasedTest::testFoundDispatches
> Data Provider method FastRoute\Dispatcher\MarkBasedTest::provideFoundDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:34
>
> 11) FastRoute\Dispatcher\MarkBasedTest::testNotFoundDispatches
> Data Provider method FastRoute\Dispatcher\MarkBasedTest::provideNotFoundDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:46
>
> 12) FastRoute\Dispatcher\MarkBasedTest::testMethodNotAllowedDispatches
> Data Provider method FastRoute\Dispatcher\MarkBasedTest::provideMethodNotAllowedDispatchCases() is not static
>
> /<<PKGBUILDDIR>>/test/Dispatcher/DispatcherTest.php:59
>
> 13) FastRoute\RouteParser\StdTest::testParse
> Data Provider method FastRoute\RouteParser\StdTest::provideTestParse() is not static
>
> /<<PKGBUILDDIR>>/test/RouteParser/StdTest.php:10
>
> 14) FastRoute\RouteParser\StdTest::testParseError
> Data Provider method FastRoute\RouteParser\StdTest::provideTestParseError() is not static
>
> /<<PKGBUILDDIR>>/test/RouteParser/StdTest.php:18
>
> WARNINGS!
> Tests: 204, Assertions: 522, Warnings: 2, Deprecations: 14, Skipped: 1.
> make[1]: *** [debian/rules:21: override_dh_auto_test] Error 1
The full build logs and additional context is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/0/php-nikic-fast-route/
A phpunit reverse-dependencies rebuild status is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html
--
Athos Ribeiro
More information about the pkg-php-pear
mailing list