[pkg-php-pear] Bug#1039843: phpunit-diff: FTBFS with phpunit 10: make[1]: *** [debian/rules:22: override_dh_auto_test] Error 1

Athos Ribeiro athoscribeiro at gmail.com
Wed Jun 28 22:32:29 BST 2023


Source: phpunit-diff
Version: 4.0.4-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: phpunit

Hi,

We will start the phpunit 10 transition in unstable soon. During a test
rebuild, phpunit-diff was found to FTBFS.

To reproduce this locally, you need to install the phpunit 10 package (and any
other dependency, which should also be available) from experimental on an
unstable system or build chroot.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit
> PHPUnit 10.2.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.7
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
> 
> D..............................................................  63 / 314 ( 20%)
> ............................................................... 126 / 314 ( 40%)
> ............................................................... 189 / 314 ( 60%)
> ............................................................... 252 / 314 ( 80%)
> ..............................................................  314 / 314 (100%)
> 
> Time: 00:03.376, Memory: 71.10 MB
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) Class SebastianBergmann\Diff\LongestCommonSubsequenceTest declared in /<<PKGBUILDDIR>>/tests/LongestCommonSubsequenceTest.php is abstract
> 
> --
> 
> There was 1 PHPUnit test runner deprecation:
> 
> 1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!
> 
> --
> 
> 27 tests triggered 31 PHPUnit deprecations:
> 
> 1) SebastianBergmann\Diff\DifferTest::testArrayRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation
> Data Provider method SebastianBergmann\Diff\DifferTest::arrayProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/DifferTest.php:43
> 
> 2) SebastianBergmann\Diff\DifferTest::testTextRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation
> Data Provider method SebastianBergmann\Diff\DifferTest::textProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/DifferTest.php:51
> 
> 3) SebastianBergmann\Diff\DifferTest::testArrayRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation
> Data Provider method SebastianBergmann\Diff\DifferTest::arrayProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/DifferTest.php:62
> 
> 4) SebastianBergmann\Diff\DifferTest::testTextRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation
> Data Provider method SebastianBergmann\Diff\DifferTest::textProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/DifferTest.php:70
> 
> 5) SebastianBergmann\Diff\DifferTest::testSplitStringByLines
> Data Provider method SebastianBergmann\Diff\DifferTest::provideSplitStringByLinesCases() is not static
> 
> /<<PKGBUILDDIR>>/tests/DifferTest.php:342
> 
> 6) SebastianBergmann\Diff\Output\AbstractChunkOutputBuilderTest::testGetCommonChunks
> Data Provider method SebastianBergmann\Diff\Output\AbstractChunkOutputBuilderTest::provideGetCommonChunks() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/AbstractChunkOutputBuilderTest.php:27
> 
> 7) SebastianBergmann\Diff\Output\DiffOnlyOutputBuilderTest::testDiffDoNotShowNonDiffLines
> Data Provider method SebastianBergmann\Diff\Output\DiffOnlyOutputBuilderTest::textForNoNonDiffLinesProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/DiffOnlyOutputBuilderTest.php:26
> 
> 8) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationUsingPHPFileInVendorGitApply
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideFilePairs() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/Integration/StrictUnifiedDiffOutputBuilderIntegrationTest.php:82
> 
> 9) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationUsingPHPFileInVendorPatch
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideFilePairs() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/Integration/StrictUnifiedDiffOutputBuilderIntegrationTest.php:109
> 
> 10) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationOfUnitTestCasesGitApply
> * Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideOutputBuildingCases() is not static
> 
> * Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideSample() is not static
> 
> * Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideBasicDiffGeneration() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/Integration/StrictUnifiedDiffOutputBuilderIntegrationTest.php:131
> 
> 11) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationOfUnitTestCasesPatch
> * Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideOutputBuildingCases() is not static
> 
> * Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideSample() is not static
> 
> * Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideBasicDiffGeneration() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/Integration/StrictUnifiedDiffOutputBuilderIntegrationTest.php:141
> 
> 12) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationDiffOutputBuilderVersusDiffCommand
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideBasicDiffGeneration() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/Integration/StrictUnifiedDiffOutputBuilderIntegrationTest.php:188
> 
> 13) SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest::testDiffWithLineNumbersPath
> Data Provider method SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest::provideDiffWithLineNumbers() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/Integration/UnifiedDiffOutputBuilderIntegrationTest.php:64
> 
> 14) SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest::testDiffWithLineNumbersGitApply
> Data Provider method SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest::provideDiffWithLineNumbers() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/Integration/UnifiedDiffOutputBuilderIntegrationTest.php:72
> 
> 15) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testOutputBuilding
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideOutputBuildingCases() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:37
> 
> 16) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testSample
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideSample() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:48
> 
> 17) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testBasicDiffGeneration
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideBasicDiffGeneration() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:83
> 
> 18) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testConfiguredDiffGeneration
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideConfiguredDiffGeneration() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:102
> 
> 19) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testInvalidConfiguration
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideInvalidConfiguration() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:297
> 
> 20) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testCommonLineThreshold
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideCommonLineThresholdCases() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:359
> 
> 21) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testContextLineConfiguration
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideContextLineConfigurationCases() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:412
> 
> 22) SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::testCustomHeaderCanBeUsed
> Data Provider method SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::headerProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/UnifiedDiffOutputBuilderTest.php:27
> 
> 23) SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::testDiffWithLineNumbers
> Data Provider method SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::provideDiffWithLineNumbers() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/UnifiedDiffOutputBuilderTest.php:70
> 
> 24) SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::testEmptyDiffProducesEmptyOutput
> Data Provider method SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::provideStringsThatAreTheSame() is not static
> 
> /<<PKGBUILDDIR>>/tests/Output/UnifiedDiffOutputBuilderTest.php:84
> 
> 25) SebastianBergmann\Diff\ParserTest::testParser
> Data Provider method SebastianBergmann\Diff\ParserTest::diffProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ParserTest.php:196
> 
> 26) SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitIntegrationTest::testValidPatches
> Data Provider method SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitIntegrationTest::provideFilePairsCases() is not static
> 
> /<<PKGBUILDDIR>>/tests/Utils/UnifiedDiffAssertTraitIntegrationTest.php:50
> 
> 27) SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitTest::testValidCases
> Data Provider method SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitTest::provideValidCases() is not static
> 
> /<<PKGBUILDDIR>>/tests/Utils/UnifiedDiffAssertTraitTest.php:27
> 
> WARNINGS!
> Tests: 314, Assertions: 860, Warnings: 1, Deprecations: 28.
> make[1]: *** [debian/rules:22: override_dh_auto_test] Error 1


The full build logs and additional context is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/0/phpunit-diff/

A phpunit reverse-dependencies rebuild status is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html

-- 
Athos Ribeiro



More information about the pkg-php-pear mailing list