[pkg-php-pear] Bug#1070516: php-algo26-idna-convert: FTBFS with phpunit 11: There were 10 PHPUnit errors

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:09:18 BST 2024


Source: php-algo26-idna-convert
Version: 3.1.1-1
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-algo26-idna-convert 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
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
> 
> .                                                                   1 / 1 (100%)
> 
> Time: 00:00.005, Memory: 10.00 MB
> 
> There were 10 PHPUnit errors:
> 
> 1) Algo26\IdnaConvert\Test\ToIdnTest::testEncodeUtf8
> The data provider specified for Algo26\IdnaConvert\Test\ToIdnTest::testEncodeUtf8 is invalid
> Data Provider method Algo26\IdnaConvert\Test\ToIdnTest::providerUtf8() is not static
> 
> /<<PKGBUILDDIR>>/tests/integration/ToIdnTest.php:22
> 
> 2) Algo26\IdnaConvert\Test\ToIdnTest::testEncodeUtf8Idna2003
> The data provider specified for Algo26\IdnaConvert\Test\ToIdnTest::testEncodeUtf8Idna2003 is invalid
> Data Provider method Algo26\IdnaConvert\Test\ToIdnTest::providerUtf8Idna2003() is not static
> 
> /<<PKGBUILDDIR>>/tests/integration/ToIdnTest.php:45
> 
> 3) Algo26\IdnaConvert\Test\ToIdnTest::testEncodeEmailAddress
> The data provider specified for Algo26\IdnaConvert\Test\ToIdnTest::testEncodeEmailAddress is invalid
> Data Provider method Algo26\IdnaConvert\Test\ToIdnTest::providerEmailAddress() is not static
> 
> /<<PKGBUILDDIR>>/tests/integration/ToIdnTest.php:66
> 
> 4) Algo26\IdnaConvert\Test\ToIdnTest::testEncodeUrl
> The data provider specified for Algo26\IdnaConvert\Test\ToIdnTest::testEncodeUrl is invalid
> Data Provider method Algo26\IdnaConvert\Test\ToIdnTest::providerUrl() is not static
> 
> /<<PKGBUILDDIR>>/tests/integration/ToIdnTest.php:87
> 
> 5) Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeUtf8
> The data provider specified for Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeUtf8 is invalid
> Data Provider method Algo26\IdnaConvert\Test\ToUnicodeTest::providerUtf8() is not static
> 
> /<<PKGBUILDDIR>>/tests/integration/ToUnicodeTest.php:18
> 
> 6) Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeUtf8Exception
> The data provider specified for Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeUtf8Exception is invalid
> Data Provider method Algo26\IdnaConvert\Test\ToUnicodeTest::providerException() is not static
> 
> /<<PKGBUILDDIR>>/tests/integration/ToUnicodeTest.php:37
> 
> 7) Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeEmailAddress
> The data provider specified for Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeEmailAddress is invalid
> Data Provider method Algo26\IdnaConvert\Test\ToUnicodeTest::providerEmailAddress() is not static
> 
> /<<PKGBUILDDIR>>/tests/integration/ToUnicodeTest.php:50
> 
> 8) Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeUrl
> The data provider specified for Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeUrl is invalid
> Data Provider method Algo26\IdnaConvert\Test\ToUnicodeTest::providerUrl() is not static
> 
> /<<PKGBUILDDIR>>/tests/integration/ToUnicodeTest.php:71
> 
> 9) Algo26\IdnaConvert\Test\namePrepTest::testSuccess2003
> The data provider specified for Algo26\IdnaConvert\Test\namePrepTest::testSuccess2003 is invalid
> Data Provider method Algo26\IdnaConvert\Test\namePrepTest::providerMapping2003() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/namePrepTest.php:40
> 
> 10) Algo26\IdnaConvert\Test\namePrepTest::testProhibited
> The data provider specified for Algo26\IdnaConvert\Test\namePrepTest::testProhibited is invalid
> Data Provider method Algo26\IdnaConvert\Test\namePrepTest::providerProhibited() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/namePrepTest.php:67
> 
> --
> 
> There were 2 PHPUnit test runner warnings:
> 
> 1) No tests found in class "Algo26\IdnaConvert\Test\ToIdnTest".
> 
> 2) No tests found in class "Algo26\IdnaConvert\Test\ToUnicodeTest".
> 
> --
> 
> There were 14 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 Algo26\IdnaConvert\Test\ToIdnTest::testEncodeUtf8(). 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 class Algo26\IdnaConvert\Test\ToIdnTest. 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 Algo26\IdnaConvert\Test\ToIdnTest::testEncodeUtf8Idna2003(). 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 Algo26\IdnaConvert\Test\ToIdnTest::testEncodeEmailAddress(). 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 Algo26\IdnaConvert\Test\ToIdnTest::testEncodeUrl(). 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 Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeUtf8(). 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 class Algo26\IdnaConvert\Test\ToUnicodeTest. 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 Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeUtf8Exception(). 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 Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeEmailAddress(). 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 Algo26\IdnaConvert\Test\ToUnicodeTest::testDecodeUrl(). 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 class Algo26\IdnaConvert\Test\namePrepTest. 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 Algo26\IdnaConvert\Test\namePrepTest::testSuccess2003(). 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 Algo26\IdnaConvert\Test\namePrepTest::testProhibited(). 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: 1, Assertions: 1, Errors: 10, Warnings: 2, Deprecations: 14.
> make[1]: *** [debian/rules:18: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-algo26-idna-convert/php-algo26-idna-convert_3.1.1-1+rebuild1714364993_amd64-2024-04-29T04:29:54Z.build



More information about the pkg-php-pear mailing list