[From nobody Wed Oct 28 18:47:10 2026
Received: (at submit) by bugs.debian.org; 6 May 2024 14:31:57 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,
 RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham
 autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 40; hammy, 150; neutral, 84; spammy,
 0. spammytokens: hammytokens:0.000-+--pkgbuilddir,
 0.000-+--PKGBUILDDIR, 0.000-+--trixie, 0.000-+--UD:ubuntu.com,
 0.000-+--UD:build
Return-path: &lt;athoscribeiro@gmail.com&gt;
Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:57698)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
 (Exim 4.94.2) (envelope-from &lt;athoscribeiro@gmail.com&gt;)
 id 1s3zNk-001dcd-RB
 for submit@bugs.debian.org; Mon, 06 May 2024 14:31:57 +0000
Received: by mail-pl1-x62e.google.com with SMTP id
 d9443c01a7336-1ec4b2400b6so14649305ad.3
 for &lt;submit@bugs.debian.org&gt;; Mon, 06 May 2024 07:31:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1715005915; x=1715610715; darn=bugs.debian.org;
 h=content-disposition:mime-version:message-id:subject:to:from:date
 :from:to:cc:subject:date:message-id:reply-to;
 bh=UvNByof6oeqt3xJFWxNmJiXzHzqRyFFl64coGouB4Sc=;
 b=XkLMC2YZ605H9ri71W+5pTopoK30iiOkKGPdPLbUEhqodyptuoJJWnPGRI8QTxw3aF
 rs19uMuFiylSkFMk/XM22oCII27ltOFBeI/AnXr2RbCUrCNPLf6FBwiUkG/We+FoQwG7
 QiTwp1zzRjR+OPBP77UrCtI4c0UXXgcucLfm+ZtnllibH7kIo1FG64O1smmzne8C5THq
 Jaher8qNzkhgJFINk9Zt4bfbhv/ZoiHxVnOrKi1xszbm+9XV60klaFtA9Sq7TBBWbDjl
 cOF2HL506ay+FnqRm5FvtpFZ/ZFNOUFe9vDH5mH17NhIjAMBtAphYxxSsB059Tnd7ul+
 yP3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1715005915; x=1715610715;
 h=content-disposition:mime-version:message-id:subject:to:from:date
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=UvNByof6oeqt3xJFWxNmJiXzHzqRyFFl64coGouB4Sc=;
 b=IBwr4AzjJQqjaV3ryX9wnzyBU1aBN+IVIdDsIUdn8Bg0nZNrzCWWR0rElY8H7H5H7i
 /sX/NQQ7xzws34gHWur54j+p/qeZ5fSbzb9NsBGj5i8dLcBZjsUVROsk9nk2XhmAmpJg
 lUscDeIH1ICeqokivCxC3XKebfoX9etLc6ZXn4sBGE87wA8ZPewQn5k8d/Uka3c/u/Ak
 54hUCKcwNLZJqbDY9sGx0cahYQmXC4vWzDBOiX8+U6va3BfNPWKFYEFlhz96WwuGwXz6
 DxBpkNIEIQMbQ0u4NqZi/GXSGNnGCMwrPNm5AQ4JAqw22Nt8nkR3QnyCmiBT7j6qliNu
 RbTw==
X-Gm-Message-State: AOJu0YzbqnKNJSTCUBV2OHt2XA8cdzi4hZtWDW5QceyPmpvVQ9ZeVe0q
 s4OfHq45CtavAVayrQa4LNFFwLIWw9TfNFscqAlQUwilyn9bG66Ap9nQIw==
X-Google-Smtp-Source: AGHT+IEUjuWFdi6GbEDN8/D4sAMskWHtMq22HQ/jS9zblKg+uhndnP4uSuY9vNfpIExumRxWEEqkFQ==
X-Received: by 2002:a17:903:1210:b0:1eb:1af6:e7ea with SMTP id
 l16-20020a170903121000b001eb1af6e7eamr10548455plh.34.1715005914655; 
 Mon, 06 May 2024 07:31:54 -0700 (PDT)
Received: from localhost ([2804:6368:a4:300:a8df:2587:521b:696f])
 by smtp.gmail.com with ESMTPSA id
 t14-20020a170902e84e00b001ead2c5ef12sm8339393plg.210.2024.05.06.07.31.53
 for &lt;submit@bugs.debian.org&gt;
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 06 May 2024 07:31:54 -0700 (PDT)
Date: Mon, 6 May 2024 11:31:51 -0300
From: Athos Ribeiro &lt;athoscribeiro@gmail.com&gt;
To: submit@bugs.debian.org
Subject: phpmd: FTBFS with phpunit 11: There were 9 PHPUnit errors
Message-ID: &lt;Zjjp13WQRais7zOd@castor&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Delivered-To: submit@bugs.debian.org

Source: phpmd
Version: 2.15.0-2
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear@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):
&gt; There were 9 PHPUnit errors:
&gt; 
&gt; 1) PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::testRuleAppliesTo
&gt; The data provider specified for PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::testRuleAppliesTo is invalid
&gt; Data Provider method PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::getApplyingCases() is not static
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Rule/CleanCode/BooleanArgumentFlagTest.php:49
&gt; 
&gt; 2) PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::testRuleDoesNotApplyTo
&gt; The data provider specified for PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::testRuleDoesNotApplyTo is invalid
&gt; Data Provider method PHPMD\Rule\CleanCode\BooleanArgumentFlagTest::getNotApplyingCases() is not static
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Rule/CleanCode/BooleanArgumentFlagTest.php:61
&gt; 
&gt; 3) PHPMD\Rule\CleanCode\MissingImportTest::testRuleAppliesTo
&gt; The data provider specified for PHPMD\Rule\CleanCode\MissingImportTest::testRuleAppliesTo is invalid
&gt; Data Provider method PHPMD\Rule\CleanCode\MissingImportTest::getApplyingCases() is not static
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Rule/CleanCode/MissingImportTest.php:48
&gt; 
&gt; 4) PHPMD\Rule\CleanCode\MissingImportTest::testRuleDoesNotApplyTo
&gt; The data provider specified for PHPMD\Rule\CleanCode\MissingImportTest::testRuleDoesNotApplyTo is invalid
&gt; Data Provider method PHPMD\Rule\CleanCode\MissingImportTest::getNotApplyingCases() is not static
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Rule/CleanCode/MissingImportTest.php:63
&gt; 
&gt; 5) PHPMD\Rule\CleanCode\UndefinedVariableTest::testRuleAppliesTo
&gt; The data provider specified for PHPMD\Rule\CleanCode\UndefinedVariableTest::testRuleAppliesTo is invalid
&gt; Data Provider method PHPMD\Rule\CleanCode\UndefinedVariableTest::getApplyingCases() is not static
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Rule/CleanCode/UndefinedVariableTest.php:46
&gt; 
&gt; 6) PHPMD\Rule\CleanCode\UndefinedVariableTest::testRuleDoesNotApplyTo
&gt; The data provider specified for PHPMD\Rule\CleanCode\UndefinedVariableTest::testRuleDoesNotApplyTo is invalid
&gt; Data Provider method PHPMD\Rule\CleanCode\UndefinedVariableTest::getNotApplyingCases() is not static
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Rule/CleanCode/UndefinedVariableTest.php:58
&gt; 
&gt; 7) PHPMD\Rule\UnusedLocalVariableTest::testRuleAppliesTo
&gt; The data provider specified for PHPMD\Rule\UnusedLocalVariableTest::testRuleAppliesTo is invalid
&gt; Data Provider method PHPMD\Rule\UnusedLocalVariableTest::getApplyingCases() is not static
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Rule/UnusedLocalVariableTest.php:63
&gt; 
&gt; 8) PHPMD\Rule\UnusedLocalVariableTest::testRuleDoesNotApplyTo
&gt; The data provider specified for PHPMD\Rule\UnusedLocalVariableTest::testRuleDoesNotApplyTo is invalid
&gt; Data Provider method PHPMD\Rule\UnusedLocalVariableTest::getNotApplyingCases() is not static
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Rule/UnusedLocalVariableTest.php:75
&gt; 
&gt; 9) PHPMD\TextUI\CommandLineOptionsTest::testDeprecatedCliOptions
&gt; The data provider specified for PHPMD\TextUI\CommandLineOptionsTest::testDeprecatedCliOptions is invalid
&gt; Data Provider method PHPMD\TextUI\CommandLineOptionsTest::dataProviderDeprecatedCliOptions() is not static
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/TextUI/CommandLineOptionsTest.php:764
&gt; 
&gt; --
&gt; 
&gt; There were 6 PHPUnit test runner warnings:
&gt; 
&gt; 1) Class PHPMD\AbstractStaticTest declared in /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/AbstractStaticTest.php is abstract
&gt; 
&gt; 2) Class PHPMD\AbstractTest declared in /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/AbstractTest.php is abstract
&gt; 
&gt; 3) Class PHPMD\Regression\AbstractTest declared in /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Regression/AbstractTest.php is abstract
&gt; 
&gt; 4) No tests found in class &quot;PHPMD\Rule\CleanCode\BooleanArgumentFlagTest&quot;.
&gt; 
&gt; 5) No tests found in class &quot;PHPMD\Rule\CleanCode\UndefinedVariableTest&quot;.
&gt; 
&gt; 6) No tests found in class &quot;PHPMD\Rule\UnusedLocalVariableTest&quot;.
&gt; 
&gt; --
&gt; 
&gt; There were 225 PHPUnit test runner deprecations:
&gt; 
...
&gt; 
&gt; --
&gt; 
&gt; 89 tests triggered 132 PHPUnit deprecations:
&gt; 
...
&gt; --
&gt; 
&gt; There were 3 risky tests:
&gt; 
&gt; 1) PHPMD\Regression\AcceptsFilesAndDirectoriesAsInputTicket001Test::testCliAcceptsDirectoryAsInput
&gt; This test did not perform any assertions
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Regression/AcceptsFilesAndDirectoriesAsInputTicket001Test.php:38
&gt; 
&gt; 2) PHPMD\Regression\AcceptsFilesAndDirectoriesAsInputTicket001Test::testCliAcceptsSingleFileAsInput
&gt; This test did not perform any assertions
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Regression/AcceptsFilesAndDirectoriesAsInputTicket001Test.php:62
&gt; 
&gt; 3) PHPMD\Regression\MaximumNestingLevelTicket24975295Test::testLocalVariableUsedInDoubleQuoteStringGetsNotReported
&gt; This test did not perform any assertions
&gt; 
&gt; /&lt;&lt;PKGBUILDDIR&gt;&gt;/src/test/php/PHPMD/Regression/MaximumNestingLevelTicket24975295Test.php:42
&gt; 
&gt; ERRORS!
&gt; Tests: 706, Assertions: 1039, Errors: 9, Warnings: 6, Deprecations: 315, Risky: 3.
&gt; 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
]