[pkg-php-pear] Bug#1070621: phpmd: FTBFS with phpunit 11: There were 9 PHPUnit errors
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:31:51 BST 2024
Source: phpmd
Version: 2.15.0-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,
phpmd 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):
> There were 9 PHPUnit errors:
>
> 1) PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::testRuleAppliesTo
> The data provider specified for PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::testRuleAppliesTo is invalid
> Data Provider method PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::getApplyingCases() is not static
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Rule/CleanCode/BooleanArgumentFlagTest.php:49
>
> 2) PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::testRuleDoesNotApplyTo
> The data provider specified for PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::testRuleDoesNotApplyTo is invalid
> Data Provider method PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::getNotApplyingCases() is not static
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Rule/CleanCode/BooleanArgumentFlagTest.php:61
>
> 3) PHPMD\Rule\CleanCode\MissingImportTest::testRuleAppliesTo
> The data provider specified for PHPMD\Rule\CleanCode\MissingImportTest::testRuleAppliesTo is invalid
> Data Provider method PHPMD\Rule\CleanCode\MissingImportTest::getApplyingCases() is not static
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Rule/CleanCode/MissingImportTest.php:48
>
> 4) PHPMD\Rule\CleanCode\MissingImportTest::testRuleDoesNotApplyTo
> The data provider specified for PHPMD\Rule\CleanCode\MissingImportTest::testRuleDoesNotApplyTo is invalid
> Data Provider method PHPMD\Rule\CleanCode\MissingImportTest::getNotApplyingCases() is not static
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Rule/CleanCode/MissingImportTest.php:63
>
> 5) PHPMD\Rule\CleanCode\UndefinedVariableTest::testRuleAppliesTo
> The data provider specified for PHPMD\Rule\CleanCode\UndefinedVariableTest::testRuleAppliesTo is invalid
> Data Provider method PHPMD\Rule\CleanCode\UndefinedVariableTest::getApplyingCases() is not static
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Rule/CleanCode/UndefinedVariableTest.php:46
>
> 6) PHPMD\Rule\CleanCode\UndefinedVariableTest::testRuleDoesNotApplyTo
> The data provider specified for PHPMD\Rule\CleanCode\UndefinedVariableTest::testRuleDoesNotApplyTo is invalid
> Data Provider method PHPMD\Rule\CleanCode\UndefinedVariableTest::getNotApplyingCases() is not static
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Rule/CleanCode/UndefinedVariableTest.php:58
>
> 7) PHPMD\Rule\UnusedLocalVariableTest::testRuleAppliesTo
> The data provider specified for PHPMD\Rule\UnusedLocalVariableTest::testRuleAppliesTo is invalid
> Data Provider method PHPMD\Rule\UnusedLocalVariableTest::getApplyingCases() is not static
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Rule/UnusedLocalVariableTest.php:63
>
> 8) PHPMD\Rule\UnusedLocalVariableTest::testRuleDoesNotApplyTo
> The data provider specified for PHPMD\Rule\UnusedLocalVariableTest::testRuleDoesNotApplyTo is invalid
> Data Provider method PHPMD\Rule\UnusedLocalVariableTest::getNotApplyingCases() is not static
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Rule/UnusedLocalVariableTest.php:75
>
> 9) PHPMD\TextUI\CommandLineOptionsTest::testDeprecatedCliOptions
> The data provider specified for PHPMD\TextUI\CommandLineOptionsTest::testDeprecatedCliOptions is invalid
> Data Provider method PHPMD\TextUI\CommandLineOptionsTest::dataProviderDeprecatedCliOptions() is not static
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/TextUI/CommandLineOptionsTest.php:764
>
> --
>
> There were 6 PHPUnit test runner warnings:
>
> 1) Class PHPMD\AbstractStaticTest declared in /<<PKGBUILDDIR>>/src/test/php/PHPMD/AbstractStaticTest.php is abstract
>
> 2) Class PHPMD\AbstractTest declared in /<<PKGBUILDDIR>>/src/test/php/PHPMD/AbstractTest.php is abstract
>
> 3) Class PHPMD\Regression\AbstractTest declared in /<<PKGBUILDDIR>>/src/test/php/PHPMD/Regression/AbstractTest.php is abstract
>
> 4) No tests found in class "PHPMD\Rule\CleanCode\BooleanArgumentFlagTest".
>
> 5) No tests found in class "PHPMD\Rule\CleanCode\UndefinedVariableTest".
>
> 6) No tests found in class "PHPMD\Rule\UnusedLocalVariableTest".
>
> --
>
> There were 225 PHPUnit test runner deprecations:
>
...
>
> --
>
> 89 tests triggered 132 PHPUnit deprecations:
>
...
> --
>
> There were 3 risky tests:
>
> 1) PHPMD\Regression\AcceptsFilesAndDirectoriesAsInputTicket001Test::testCliAcceptsDirectoryAsInput
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Regression/AcceptsFilesAndDirectoriesAsInputTicket001Test.php:38
>
> 2) PHPMD\Regression\AcceptsFilesAndDirectoriesAsInputTicket001Test::testCliAcceptsSingleFileAsInput
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Regression/AcceptsFilesAndDirectoriesAsInputTicket001Test.php:62
>
> 3) PHPMD\Regression\MaximumNestingLevelTicket24975295Test::testLocalVariableUsedInDoubleQuoteStringGetsNotReported
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/src/test/php/PHPMD/Regression/MaximumNestingLevelTicket24975295Test.php:42
>
> ERRORS!
> Tests: 706, Assertions: 1039, Errors: 9, Warnings: 6, Deprecations: 315, Risky: 3.
> 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/1/phpmd/phpmd_2.15.0-2+rebuild1714781064_amd64-2024-05-04T00:04:25Z.build
More information about the pkg-php-pear
mailing list