[pkg-php-pear] Bug#1070556: php-jakeasmith-http-build-url: FTBFS with phpunit 11: Data Provider method HttpBuildUrlTest::trailingSlashProvider() is not static

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:17:25 BST 2024


Source: php-jakeasmith-http-build-url
Version: 1.0.1-2
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: phpunit11

Hi,

phpunit 11 is out and is now available in experimental. During a test rebuild,
php-jakeasmith-http-build-url 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
> PHP Warning:  Class "PHPUnit\Framework\Error\Error" not found in /<<PKGBUILDDIR>>/tests/bootstrap.php on line 8
> PHP Warning:  Class "PHPUnit\Framework\Error\Notice" not found in /<<PKGBUILDDIR>>/tests/bootstrap.php on line 9
> PHP Warning:  Class "PHPUnit\Framework\Error\Warning" not found in /<<PKGBUILDDIR>>/tests/bootstrap.php on line 10
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> 
> ......D.                                                            8 / 8 (100%)
> 
> Time: 00:00.003, Memory: 8.00 MB
> 
> There were 4 PHPUnit errors:
> 
> 1) HttpBuildUrlTest::testTrailingSlash
> The data provider specified for HttpBuildUrlTest::testTrailingSlash is invalid
> Data Provider method HttpBuildUrlTest::trailingSlashProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/HttpBuildUrlTest.php:86
> 
> 2) HttpBuildUrlTest::testJoinQuery
> The data provider specified for HttpBuildUrlTest::testJoinQuery is invalid
> Data Provider method HttpBuildUrlTest::queryProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/HttpBuildUrlTest.php:144
> 
> 3) HttpBuildUrlTest::testJoinPath
> The data provider specified for HttpBuildUrlTest::testJoinPath is invalid
> Data Provider method HttpBuildUrlTest::pathProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/HttpBuildUrlTest.php:154
> 
> 4) HttpBuildUrlTest::testBitmasks
> The data provider specified for HttpBuildUrlTest::testBitmasks is invalid
> Data Provider method HttpBuildUrlTest::bitmaskProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/HttpBuildUrlTest.php:176
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) Test results may not be as expected because the XML configuration file did not pass validation:
> 
>   Line 4:
>   - Element 'testsuite': The attribute 'name' is required but missing.
> 
>   Line 8:
>   - Element 'filter': This element is not expected.
> 
> 
> --
> 
> There were 4 PHPUnit test runner deprecations:
> 
> 1) Metadata found in doc-comment for method HttpBuildUrlTest::testTrailingSlash(). 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 HttpBuildUrlTest::testJoinQuery(). 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 HttpBuildUrlTest::testJoinPath(). 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 HttpBuildUrlTest::testBitmasks(). 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: 8, Assertions: 8, Errors: 4, Warnings: 1, Deprecations: 5.
> make[1]: *** [debian/rules:7: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/1/php-jakeasmith-http-build-url/php-jakeasmith-http-build-url_1.0.1-2+rebuild1714780640_amd64-2024-05-03T23:57:21Z.build



More information about the pkg-php-pear mailing list