[pkg-php-pear] Bug#1070610: php-voku-portable-ascii: FTBFS with phpunit 11: There were 2 PHPUnit errors

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:30:27 BST 2024


Source: php-voku-portable-ascii
Version: 2.0.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-voku-portable-ascii 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 --include-path src
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
> 
> .......................................                           39 / 39 (100%)
> 
> Time: 00:00.014, Memory: 10.00 MB
> 
> There were 2 PHPUnit errors:
> 
> 1) voku\tests\AsciiGlobalTest::testSlugify
> The data provider specified for voku\tests\AsciiGlobalTest::testSlugify is invalid
> Data Provider method voku\tests\AsciiGlobalTest::slugifyProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/AsciiGlobalTest.php:311
> 
> 2) voku\tests\AsciiGlobalTest::testToAscii
> The data provider specified for voku\tests\AsciiGlobalTest::testToAscii is invalid
> Data Provider method voku\tests\AsciiGlobalTest::toAsciiProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/AsciiGlobalTest.php:343
> 
> --
> 
> There were 4 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 voku\tests\AsciiGlobalTest::testSlugify(). 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 voku\tests\AsciiGlobalTest::testToAscii(). 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 voku\tests\TransliterateTest::it_can_replace_special_characters(). 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: 39, Assertions: 1478, Errors: 2, Deprecations: 4.
> 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-voku-portable-ascii/php-voku-portable-ascii_2.0.1-1+rebuild1714378523_amd64-2024-04-29T08:15:24Z.build



More information about the pkg-php-pear mailing list