[pkg-php-pear] Bug#1070632: phpunit-lines-of-code: FTBFS with phpunit 11: Data Provider method SebastianBergmann\LinesOfCode\LineCountingVisitorTest::provideData() is not static

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


Source: phpunit-lines-of-code
Version: 1.0.4-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,
phpunit-lines-of-code 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
> 
> ..............                                                    14 / 14 (100%)
> 
> Time: 00:00.013, Memory: 10.00 MB
> 
> There was 1 PHPUnit error:
> 
> 1) SebastianBergmann\LinesOfCode\LineCountingVisitorTest::testCountsLinesOfCodeInAbstractSyntaxTree
> The data provider specified for SebastianBergmann\LinesOfCode\LineCountingVisitorTest::testCountsLinesOfCodeInAbstractSyntaxTree is invalid
> Data Provider method SebastianBergmann\LinesOfCode\LineCountingVisitorTest::provideData() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/LineCountingVisitorTest.php:29
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) No tests found in class "SebastianBergmann\LinesOfCode\LineCountingVisitorTest".
> 
> --
> 
> There were 10 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 class SebastianBergmann\LinesOfCode\CounterTest. 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 SebastianBergmann\LinesOfCode\LineCountingVisitorTest::testCountsLinesOfCodeInAbstractSyntaxTree(). 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 class SebastianBergmann\LinesOfCode\LineCountingVisitorTest. 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 SebastianBergmann\LinesOfCode\LinesOfCodeTest::testHasLinesOfCode(). 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 class SebastianBergmann\LinesOfCode\LinesOfCodeTest. 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 SebastianBergmann\LinesOfCode\LinesOfCodeTest::testHasCommentLinesOfCode(). 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 SebastianBergmann\LinesOfCode\LinesOfCodeTest::testHasNonCommentLinesOfCode(). 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 SebastianBergmann\LinesOfCode\LinesOfCodeTest::testHasLogicalLinesOfCode(). 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 SebastianBergmann\LinesOfCode\LinesOfCodeTest::testNumbersHaveToMakeSense(). 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: 14, Assertions: 34, Errors: 1, Warnings: 1, Deprecations: 10.
> make[1]: *** [debian/rules:17: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/phpunit-lines-of-code/phpunit-lines-of-code_1.0.4-2+rebuild1714378169_amd64-2024-04-29T08:09:30Z.build



More information about the pkg-php-pear mailing list