[pkg-php-pear] Bug#1070628: phpunit-diff: FTBFS with phpunit 11: There were 27 PHPUnit errors
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:33:03 BST 2024
Source: phpunit-diff
Version: 4.0.6-1
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-diff 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 27 PHPUnit errors:
>
> 1) SebastianBergmann\Diff\DifferTest::testArrayRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation
> The data provider specified for SebastianBergmann\Diff\DifferTest::testArrayRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation is invalid
> Data Provider method SebastianBergmann\Diff\DifferTest::arrayProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:43
>
> 2) SebastianBergmann\Diff\DifferTest::testTextRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation
> The data provider specified for SebastianBergmann\Diff\DifferTest::testTextRepresentationOfDiffCanBeRenderedUsingTimeEfficientLcsImplementation is invalid
> Data Provider method SebastianBergmann\Diff\DifferTest::textProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:51
>
> 3) SebastianBergmann\Diff\DifferTest::testArrayRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation
> The data provider specified for SebastianBergmann\Diff\DifferTest::testArrayRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation is invalid
> Data Provider method SebastianBergmann\Diff\DifferTest::arrayProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:62
>
> 4) SebastianBergmann\Diff\DifferTest::testTextRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation
> The data provider specified for SebastianBergmann\Diff\DifferTest::testTextRepresentationOfDiffCanBeRenderedUsingMemoryEfficientLcsImplementation is invalid
> Data Provider method SebastianBergmann\Diff\DifferTest::textProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:70
>
> 5) SebastianBergmann\Diff\DifferTest::testSplitStringByLines
> The data provider specified for SebastianBergmann\Diff\DifferTest::testSplitStringByLines is invalid
> Data Provider method SebastianBergmann\Diff\DifferTest::provideSplitStringByLinesCases() is not static
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:342
>
> 6) SebastianBergmann\Diff\Output\AbstractChunkOutputBuilderTest::testGetCommonChunks
> The data provider specified for SebastianBergmann\Diff\Output\AbstractChunkOutputBuilderTest::testGetCommonChunks is invalid
> Data Provider method SebastianBergmann\Diff\Output\AbstractChunkOutputBuilderTest::provideGetCommonChunks() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/AbstractChunkOutputBuilderTest.php:27
>
> 7) SebastianBergmann\Diff\Output\DiffOnlyOutputBuilderTest::testDiffDoNotShowNonDiffLines
> The data provider specified for SebastianBergmann\Diff\Output\DiffOnlyOutputBuilderTest::testDiffDoNotShowNonDiffLines is invalid
> Data Provider method SebastianBergmann\Diff\Output\DiffOnlyOutputBuilderTest::textForNoNonDiffLinesProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/DiffOnlyOutputBuilderTest.php:26
>
> 8) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationUsingPHPFileInVendorGitApply
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationUsingPHPFileInVendorGitApply is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideFilePairs() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/Integration/StrictUnifiedDiffOutputBuilderIntegrationTest.php:82
>
> 9) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationUsingPHPFileInVendorPatch
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationUsingPHPFileInVendorPatch is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideFilePairs() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/Integration/StrictUnifiedDiffOutputBuilderIntegrationTest.php:109
>
> 10) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationOfUnitTestCasesGitApply
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationOfUnitTestCasesGitApply is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideOutputBuildingCases() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/Integration/StrictUnifiedDiffOutputBuilderIntegrationTest.php:131
>
> 11) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationOfUnitTestCasesPatch
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationOfUnitTestCasesPatch is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideOutputBuildingCases() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/Integration/StrictUnifiedDiffOutputBuilderIntegrationTest.php:141
>
> 12) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationDiffOutputBuilderVersusDiffCommand
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::testIntegrationDiffOutputBuilderVersusDiffCommand is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest::provideBasicDiffGeneration() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/Integration/StrictUnifiedDiffOutputBuilderIntegrationTest.php:188
>
> 13) SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest::testDiffWithLineNumbersPath
> The data provider specified for SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest::testDiffWithLineNumbersPath is invalid
> Data Provider method SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest::provideDiffWithLineNumbers() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/Integration/UnifiedDiffOutputBuilderIntegrationTest.php:64
>
> 14) SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest::testDiffWithLineNumbersGitApply
> The data provider specified for SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest::testDiffWithLineNumbersGitApply is invalid
> Data Provider method SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest::provideDiffWithLineNumbers() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/Integration/UnifiedDiffOutputBuilderIntegrationTest.php:72
>
> 15) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testOutputBuilding
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testOutputBuilding is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideOutputBuildingCases() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:37
>
> 16) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testSample
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testSample is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideSample() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:48
>
> 17) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testBasicDiffGeneration
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testBasicDiffGeneration is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideBasicDiffGeneration() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:83
>
> 18) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testConfiguredDiffGeneration
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testConfiguredDiffGeneration is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideConfiguredDiffGeneration() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:102
>
> 19) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testInvalidConfiguration
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testInvalidConfiguration is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideInvalidConfiguration() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:297
>
> 20) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testCommonLineThreshold
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testCommonLineThreshold is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideCommonLineThresholdCases() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:359
>
> 21) SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testContextLineConfiguration
> The data provider specified for SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::testContextLineConfiguration is invalid
> Data Provider method SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderTest::provideContextLineConfigurationCases() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/StrictUnifiedDiffOutputBuilderTest.php:412
>
> 22) SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::testCustomHeaderCanBeUsed
> The data provider specified for SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::testCustomHeaderCanBeUsed is invalid
> Data Provider method SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::headerProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/UnifiedDiffOutputBuilderTest.php:27
>
> 23) SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::testDiffWithLineNumbers
> The data provider specified for SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::testDiffWithLineNumbers is invalid
> Data Provider method SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::provideDiffWithLineNumbers() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/UnifiedDiffOutputBuilderTest.php:70
>
> 24) SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::testEmptyDiffProducesEmptyOutput
> The data provider specified for SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::testEmptyDiffProducesEmptyOutput is invalid
> Data Provider method SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest::provideStringsThatAreTheSame() is not static
>
> /<<PKGBUILDDIR>>/tests/Output/UnifiedDiffOutputBuilderTest.php:84
>
> 25) SebastianBergmann\Diff\ParserTest::testParser
> The data provider specified for SebastianBergmann\Diff\ParserTest::testParser is invalid
> Data Provider method SebastianBergmann\Diff\ParserTest::diffProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ParserTest.php:196
>
> 26) SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitIntegrationTest::testValidPatches
> The data provider specified for SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitIntegrationTest::testValidPatches is invalid
> Data Provider method SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitIntegrationTest::provideFilePairsCases() is not static
>
> /<<PKGBUILDDIR>>/tests/Utils/UnifiedDiffAssertTraitIntegrationTest.php:50
>
> 27) SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitTest::testValidCases
> The data provider specified for SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitTest::testValidCases is invalid
> Data Provider method SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitTest::provideValidCases() is not static
>
> /<<PKGBUILDDIR>>/tests/Utils/UnifiedDiffAssertTraitTest.php:27
>
> --
>
> There were 7 PHPUnit test runner warnings:
>
> 1) Class SebastianBergmann\Diff\LongestCommonSubsequenceTest declared in /<<PKGBUILDDIR>>/tests/LongestCommonSubsequenceTest.php is abstract
>
> 2) No tests found in class "SebastianBergmann\Diff\Output\AbstractChunkOutputBuilderTest".
>
> 3) No tests found in class "SebastianBergmann\Diff\Output\DiffOnlyOutputBuilderTest".
>
> 4) No tests found in class "SebastianBergmann\Diff\Output\StrictUnifiedDiffOutputBuilderIntegrationTest".
>
> 5) No tests found in class "SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderIntegrationTest".
>
> 6) No tests found in class "SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilderTest".
>
> 7) No tests found in class "SebastianBergmann\Diff\Utils\UnifiedDiffAssertTraitIntegrationTest".
>
> --
>
> There were 45 PHPUnit test runner deprecations:
>
...
>
> --
>
> There were 24 errors:
>
> 1) SebastianBergmann\Diff\ChunkTest::testHasInitiallyNoLines
> Error: Call to undefined method SebastianBergmann\Diff\Chunk::getLines()
>
> /<<PKGBUILDDIR>>/tests/ChunkTest.php:33
>
> 2) SebastianBergmann\Diff\ChunkTest::testStartCanBeRetrieved
> Error: Call to undefined method SebastianBergmann\Diff\Chunk::getStart()
>
> /<<PKGBUILDDIR>>/tests/ChunkTest.php:43
>
> 3) SebastianBergmann\Diff\ChunkTest::testStartRangeCanBeRetrieved
> Error: Call to undefined method SebastianBergmann\Diff\Chunk::getStartRange()
>
> /<<PKGBUILDDIR>>/tests/ChunkTest.php:48
>
> 4) SebastianBergmann\Diff\ChunkTest::testEndCanBeRetrieved
> Error: Call to undefined method SebastianBergmann\Diff\Chunk::getEnd()
>
> /<<PKGBUILDDIR>>/tests/ChunkTest.php:53
>
> 5) SebastianBergmann\Diff\ChunkTest::testEndRangeCanBeRetrieved
> Error: Call to undefined method SebastianBergmann\Diff\Chunk::getEndRange()
>
> /<<PKGBUILDDIR>>/tests/ChunkTest.php:58
>
> 6) SebastianBergmann\Diff\ChunkTest::testLinesCanBeRetrieved
> Error: Call to undefined method SebastianBergmann\Diff\Chunk::getLines()
>
> /<<PKGBUILDDIR>>/tests/ChunkTest.php:63
>
> 7) SebastianBergmann\Diff\ChunkTest::testLinesCanBeSet
> Error: Call to undefined method SebastianBergmann\Diff\Chunk::getLines()
>
> /<<PKGBUILDDIR>>/tests/ChunkTest.php:72
>
> 8) SebastianBergmann\Diff\DiffTest::testGettersAfterConstructionWithDefault
> Error: Call to undefined method SebastianBergmann\Diff\Diff::getFrom()
>
> /<<PKGBUILDDIR>>/tests/DiffTest.php:27
>
> 9) SebastianBergmann\Diff\DiffTest::testGettersAfterConstructionWithChunks
> Error: Call to undefined method SebastianBergmann\Diff\Diff::getFrom()
>
> /<<PKGBUILDDIR>>/tests/DiffTest.php:40
>
> 10) SebastianBergmann\Diff\DiffTest::testSetChunksAfterConstruction
> Error: Call to undefined method SebastianBergmann\Diff\Diff::getChunks()
>
> /<<PKGBUILDDIR>>/tests/DiffTest.php:48
>
> 11) SebastianBergmann\Diff\DifferTest::testTypesOtherThanArrayAndStringCanBePassed
> ArgumentCountError: Too few arguments to function SebastianBergmann\Diff\Differ::__construct(), 0 passed in /<<PKGBUILDDIR>>/tests/DifferTest.php on line 34 and exactly 1 expected
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:34
>
> 12) SebastianBergmann\Diff\DifferTest::testArrayDiffs
> ArgumentCountError: Too few arguments to function SebastianBergmann\Diff\Differ::__construct(), 0 passed in /<<PKGBUILDDIR>>/tests/DifferTest.php on line 34 and exactly 1 expected
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:34
>
> 13) SebastianBergmann\Diff\DifferTest::testDiffToArrayInvalidFromType
> ArgumentCountError: Too few arguments to function SebastianBergmann\Diff\Differ::__construct(), 0 passed in /<<PKGBUILDDIR>>/tests/DifferTest.php on line 34 and exactly 1 expected
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:34
>
> 14) SebastianBergmann\Diff\DifferTest::testDiffInvalidToType
> ArgumentCountError: Too few arguments to function SebastianBergmann\Diff\Differ::__construct(), 0 passed in /<<PKGBUILDDIR>>/tests/DifferTest.php on line 34 and exactly 1 expected
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:34
>
> 15) SebastianBergmann\Diff\DifferTest::testConstructorInvalidArgInt
> ArgumentCountError: Too few arguments to function SebastianBergmann\Diff\Differ::__construct(), 0 passed in /<<PKGBUILDDIR>>/tests/DifferTest.php on line 34 and exactly 1 expected
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:34
>
> 16) SebastianBergmann\Diff\DifferTest::testConstructorInvalidArgObject
> ArgumentCountError: Too few arguments to function SebastianBergmann\Diff\Differ::__construct(), 0 passed in /<<PKGBUILDDIR>>/tests/DifferTest.php on line 34 and exactly 1 expected
>
> /<<PKGBUILDDIR>>/tests/DifferTest.php:34
>
> 17) SebastianBergmann\Diff\LineTest::testTypeCanBeRetrieved
> Error: Call to undefined method SebastianBergmann\Diff\Line::getType()
>
> /<<PKGBUILDDIR>>/tests/LineTest.php:36
>
> 18) SebastianBergmann\Diff\LineTest::testContentCanBeRetrieved
> Error: Call to undefined method SebastianBergmann\Diff\Line::getContent()
>
> /<<PKGBUILDDIR>>/tests/LineTest.php:41
>
> 19) SebastianBergmann\Diff\ParserTest::testParse
> Error: Call to undefined method SebastianBergmann\Diff\Diff::getChunks()
>
> /<<PKGBUILDDIR>>/tests/ParserTest.php:44
>
> 20) SebastianBergmann\Diff\ParserTest::testParseWithMultipleChunks
> Error: Call to undefined method SebastianBergmann\Diff\Diff::getChunks()
>
> /<<PKGBUILDDIR>>/tests/ParserTest.php:62
>
> 21) SebastianBergmann\Diff\ParserTest::testParseWithSpacesInFileNames
> Error: Call to undefined method SebastianBergmann\Diff\Diff::getFrom()
>
> /<<PKGBUILDDIR>>/tests/ParserTest.php:92
>
> 22) SebastianBergmann\Diff\ParserTest::testParseWithSpacesInFileNamesAndTimesamp
> Error: Call to undefined method SebastianBergmann\Diff\Diff::getFrom()
>
> /<<PKGBUILDDIR>>/tests/ParserTest.php:113
>
> 23) SebastianBergmann\Diff\ParserTest::testParseWithRemovedLines
> Error: Call to undefined method SebastianBergmann\Diff\Diff::getChunks()
>
> /<<PKGBUILDDIR>>/tests/ParserTest.php:132
>
> 24) SebastianBergmann\Diff\ParserTest::testParseDiffForMulitpleFiles
> Error: Call to undefined method SebastianBergmann\Diff\Diff::getFrom()
>
> /<<PKGBUILDDIR>>/tests/ParserTest.php:181
>
> ERRORS!
> Tests: 76, Assertions: 187, Errors: 51, Warnings: 7, Deprecations: 45.
> make[1]: *** [debian/rules:22: override_dh_auto_test] Error 2
The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/phpunit-diff/phpunit-diff_4.0.6-1+rebuild1714377900_amd64-2024-04-29T08:05:01Z.build
More information about the pkg-php-pear
mailing list