[pkg-php-pear] Bug#1070601: php-sql-formatter: FTBFS with phpunit 11: There were 5 PHPUnit errors
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:29:11 BST 2024
Source: php-sql-formatter
Version: 1.2.17+dct1.1.3-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-sql-formatter 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.dist
>
> ... 3 / 3 (100%)
>
> Time: 00:00.005, Memory: 8.00 MB
>
> There were 5 PHPUnit errors:
>
> 1) Doctrine\SqlFormatter\Tests\SqlFormatterTest::testFormatHighlight
> The data provider specified for Doctrine\SqlFormatter\Tests\SqlFormatterTest::testFormatHighlight is invalid
> Data Provider method Doctrine\SqlFormatter\Tests\SqlFormatterTest::formatHighlightData() is not static
>
> /<<PKGBUILDDIR>>/tests/SqlFormatterTest.php:49
>
> 2) Doctrine\SqlFormatter\Tests\SqlFormatterTest::testFormat
> The data provider specified for Doctrine\SqlFormatter\Tests\SqlFormatterTest::testFormat is invalid
> Data Provider method Doctrine\SqlFormatter\Tests\SqlFormatterTest::formatData() is not static
>
> /<<PKGBUILDDIR>>/tests/SqlFormatterTest.php:57
>
> 3) Doctrine\SqlFormatter\Tests\SqlFormatterTest::testHighlight
> The data provider specified for Doctrine\SqlFormatter\Tests\SqlFormatterTest::testHighlight is invalid
> Data Provider method Doctrine\SqlFormatter\Tests\SqlFormatterTest::highlightData() is not static
>
> /<<PKGBUILDDIR>>/tests/SqlFormatterTest.php:66
>
> 4) Doctrine\SqlFormatter\Tests\SqlFormatterTest::testCliHighlight
> The data provider specified for Doctrine\SqlFormatter\Tests\SqlFormatterTest::testCliHighlight is invalid
> Data Provider method Doctrine\SqlFormatter\Tests\SqlFormatterTest::highlightCliData() is not static
>
> /<<PKGBUILDDIR>>/tests/SqlFormatterTest.php:93
>
> 5) Doctrine\SqlFormatter\Tests\SqlFormatterTest::testCompress
> The data provider specified for Doctrine\SqlFormatter\Tests\SqlFormatterTest::testCompress is invalid
> Data Provider method Doctrine\SqlFormatter\Tests\SqlFormatterTest::compressData() is not static
>
> /<<PKGBUILDDIR>>/tests/SqlFormatterTest.php:102
>
> --
>
> There were 8 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 Doctrine\SqlFormatter\Tests\SqlFormatterTest::testFormatHighlight(). 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 Doctrine\SqlFormatter\Tests\SqlFormatterTest. 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 Doctrine\SqlFormatter\Tests\SqlFormatterTest::testFormat(). 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 Doctrine\SqlFormatter\Tests\SqlFormatterTest::testHighlight(). 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 Doctrine\SqlFormatter\Tests\SqlFormatterTest::testCliHighlight(). 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 Doctrine\SqlFormatter\Tests\SqlFormatterTest::testCompress(). 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 Doctrine\SqlFormatter\Tests\TokenizerTest::testThereAreNoRegressions(). 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: 3, Assertions: 3, Errors: 5, Deprecations: 8.
> 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-sql-formatter/php-sql-formatter_1.2.17+dct1.1.3-1+rebuild1714377120_amd64-2024-04-29T07:52:00Z.build
More information about the pkg-php-pear
mailing list