Source: phpcpd
Version: 6.0.3-3
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-p...@lists.alioth.debian.org
Usertags: phpunit11

Hi,

phpunit 11 is out and is now available in experimental. During a test rebuild,
phpcpd 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 --bootstrap src/autoload.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
> 
> .                                                                   1 / 1 
> (100%)
> 
> Time: 00:00.004, Memory: 8.00 MB
> 
> There were 7 PHPUnit errors:
> 
> 1) 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testDetectingSimpleClonesWorks
> The data provider specified for 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testDetectingSimpleClonesWorks
>  is invalid
> Data Provider method 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::strategyProvider() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/unit/DetectorTest.php:33
> 
> 2) 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testDetectingExactDuplicateFilesWorks
> The data provider specified for 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testDetectingExactDuplicateFilesWorks
>  is invalid
> Data Provider method 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::strategyProvider() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/unit/DetectorTest.php:123
> 
> 3) 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testDetectingClonesInMoreThanTwoFiles
> The data provider specified for 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testDetectingClonesInMoreThanTwoFiles
>  is invalid
> Data Provider method 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::strategyProvider() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/unit/DetectorTest.php:155
> 
> 4) 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testClonesAreIgnoredIfTheySpanLessTokensThanMinTokens
> The data provider specified for 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testClonesAreIgnoredIfTheySpanLessTokensThanMinTokens
>  is invalid
> Data Provider method 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::strategyProvider() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/unit/DetectorTest.php:193
> 
> 5) 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testClonesAreIgnoredIfTheySpanLessLinesThanMinLines
> The data provider specified for 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testClonesAreIgnoredIfTheySpanLessLinesThanMinLines
>  is invalid
> Data Provider method 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::strategyProvider() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/unit/DetectorTest.php:212
> 
> 6) SebastianBergmann\PHPCPD\Detector\DetectorTest::testFuzzyClonesAreFound
> The data provider specified for 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testFuzzyClonesAreFound is 
> invalid
> Data Provider method 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::strategyProvider() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/unit/DetectorTest.php:231
> 
> 7) SebastianBergmann\PHPCPD\Detector\DetectorTest::testStripComments
> The data provider specified for 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testStripComments is invalid
> Data Provider method 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::strategyProvider() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/unit/DetectorTest.php:251
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) No tests found in class "SebastianBergmann\PHPCPD\Detector\DetectorTest".
> 
> --
> 
> 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 method 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testDetectingSimpleClonesWorks().
>  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 
> SebastianBergmann\PHPCPD\Detector\DetectorTest. 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 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testDetectingExactDuplicateFilesWorks().
>  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\PHPCPD\Detector\DetectorTest::testDetectingClonesInMoreThanTwoFiles().
>  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 
> SebastianBergmann\PHPCPD\Detector\DetectorTest::testClonesAreIgnoredIfTheySpanLessTokensThanMinTokens().
>  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\PHPCPD\Detector\DetectorTest::testClonesAreIgnoredIfTheySpanLessLinesThanMinLines().
>  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\PHPCPD\Detector\DetectorTest::testFuzzyClonesAreFound(). 
> 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\PHPCPD\Detector\DetectorTest::testStripComments(). 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 class 
> SebastianBergmann\PHPCPD\Log\PMDTest. 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: 7, Warnings: 1, Deprecations: 10.
> make[1]: *** [debian/rules:16: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/phpcpd/phpcpd_6.0.3-3+rebuild1714365883_amd64-2024-04-29T04:44:44Z.build

Reply via email to