Source: php-parser
Version: 4.15.5-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-p...@lists.alioth.debian.org
Usertags: phpunit

Hi,

We will start the phpunit 10 transition in unstable soon. During a test
rebuild, php-parser 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):
> There was 1 PHPUnit test runner warning:
> 
> 1) Class PhpParser\ParserTest declared in 
> /<<PKGBUILDDIR>>/test/PhpParser/ParserTest.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"!
> 
> --
> 
> There was 1 error:
> 
> 1) PhpParser\NodeAbstractTest::testConstruct with data set #0
> Error: Call to undefined method 
> PhpParser\NodeAbstractTest::assertObjectHasAttribute()
> 
> /<<PKGBUILDDIR>>/test/PhpParser/NodeAbstractTest.php:68
> 
> --
> 
> 59 tests triggered 61 PHPUnit deprecations:
> 
> 1) PhpParser\Builder\ClassConstTest::testValues
> Data Provider method 
> PhpParser\Builder\ClassConstTest::provideTestDefaultValues() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Builder/ClassConstTest.php:148
> 
> 2) PhpParser\Builder\EnumCaseTest::testValues
> Data Provider method 
> PhpParser\Builder\EnumCaseTest::provideTestDefaultValues() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Builder/EnumCaseTest.php:63
> 
> 3) PhpParser\Builder\ParamTest::testDefaultValues
> Data Provider method PhpParser\Builder\ParamTest::provideTestDefaultValues() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Builder/ParamTest.php:24
> 
> 4) PhpParser\Builder\ParamTest::testTypes
> * Data Provider method PhpParser\Builder\ParamTest::provideTestTypes() is not 
> static
> 
> * Data Provider method 
> PhpParser\Builder\ParamTest::provideTestNullableTypes() is not static
> 
> * Data Provider method PhpParser\Builder\ParamTest::provideTestUnionTypes() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Builder/ParamTest.php:92
> 
> 5) PhpParser\Builder\PropertyTest::testDefaultValues
> Data Provider method 
> PhpParser\Builder\PropertyTest::provideTestDefaultValues() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Builder/PropertyTest.php:105
> 
> 6) PhpParser\BuilderFactoryTest::testFactory
> Data Provider method PhpParser\BuilderFactoryTest::provideTestFactory() is 
> not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/BuilderFactoryTest.php:19
> 
> 7) PhpParser\CodeParsingTest::testParse
> Data Provider method PhpParser\CodeParsingTest::provideTestParse() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/CodeParsingTest.php:13
> 
> 8) PhpParser\CommentTest::testReformatting
> Data Provider method PhpParser\CommentTest::provideTestReformatting() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/CommentTest.php:27
> 
> 9) PhpParser\ConstExprEvaluatorTest::testEvaluate
> Data Provider method PhpParser\ConstExprEvaluatorTest::provideTestEvaluate() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/ConstExprEvaluatorTest.php:11
> 
> 10) PhpParser\ConstExprEvaluatorTest::testEvaluateSilently
> Data Provider method 
> PhpParser\ConstExprEvaluatorTest::provideTestEvaluateSilently() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/ConstExprEvaluatorTest.php:102
> 
> 11) PhpParser\ErrorTest::testColumnInfo
> Data Provider method PhpParser\ErrorTest::provideTestColumnInfo() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/ErrorTest.php:44
> 
> 12) PhpParser\Internal\DifferTest::testDiff
> Data Provider method PhpParser\Internal\DifferTest::provideTestDiff() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Internal/DifferTest.php:32
> 
> 13) PhpParser\Internal\DifferTest::testDiffWithReplacements
> Data Provider method 
> PhpParser\Internal\DifferTest::provideTestDiffWithReplacements() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Internal/DifferTest.php:51
> 
> 14) PhpParser\JsonDecoderTest::testDecodingError
> Data Provider method PhpParser\JsonDecoderTest::provideTestDecodingError() is 
> not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/JsonDecoderTest.php:27
> 
> 15) PhpParser\Lexer\EmulativeTest::testReplaceKeywords
> Data Provider method 
> PhpParser\Lexer\EmulativeTest::provideTestReplaceKeywords() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Lexer/EmulativeTest.php:19
> 
> 16) PhpParser\Lexer\EmulativeTest::testReplaceKeywordsUppercase
> Data Provider method 
> PhpParser\Lexer\EmulativeTest::provideTestReplaceKeywords() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Lexer/EmulativeTest.php:30
> 
> 17) PhpParser\Lexer\EmulativeTest::testNoReplaceKeywordsAfterObjectOperator
> Data Provider method 
> PhpParser\Lexer\EmulativeTest::provideTestReplaceKeywords() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Lexer/EmulativeTest.php:41
> 
> 18) 
> PhpParser\Lexer\EmulativeTest::testNoReplaceKeywordsAfterObjectOperatorWithSpaces
> Data Provider method 
> PhpParser\Lexer\EmulativeTest::provideTestReplaceKeywords() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Lexer/EmulativeTest.php:53
> 
> 19) 
> PhpParser\Lexer\EmulativeTest::testNoReplaceKeywordsAfterNullsafeObjectOperator
> Data Provider method 
> PhpParser\Lexer\EmulativeTest::provideTestReplaceKeywords() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Lexer/EmulativeTest.php:65
> 
> 20) PhpParser\Lexer\EmulativeTest::testLexNewFeatures
> Data Provider method 
> PhpParser\Lexer\EmulativeTest::provideTestLexNewFeatures() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Lexer/EmulativeTest.php:111
> 
> 21) PhpParser\Lexer\EmulativeTest::testLeaveStuffAloneInStrings
> Data Provider method 
> PhpParser\Lexer\EmulativeTest::provideTestLexNewFeatures() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Lexer/EmulativeTest.php:120
> 
> 22) PhpParser\Lexer\EmulativeTest::testErrorAfterEmulation
> Data Provider method 
> PhpParser\Lexer\EmulativeTest::provideTestLexNewFeatures() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Lexer/EmulativeTest.php:134
> 
> 23) PhpParser\Lexer\EmulativeTest::testTargetVersion
> Data Provider method 
> PhpParser\Lexer\EmulativeTest::provideTestTargetVersion() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Lexer/EmulativeTest.php:377
> 
> 24) PhpParser\Lexer\EmulativeTest::testError
> Data Provider method PhpParser\Lexer\EmulativeTest::provideTestError() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/LexerTest.php:17
> 
> 25) PhpParser\Lexer\EmulativeTest::testLex
> Data Provider method PhpParser\Lexer\EmulativeTest::provideTestLex() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/LexerTest.php:54
> 
> 26) PhpParser\Lexer\EmulativeTest::testHandleHaltCompiler
> Data Provider method PhpParser\Lexer\EmulativeTest::provideTestHaltCompiler() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/LexerTest.php:248
> 
> 27) PhpParser\LexerTest::testError
> Data Provider method PhpParser\LexerTest::provideTestError() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/LexerTest.php:17
> 
> 28) PhpParser\LexerTest::testLex
> Data Provider method PhpParser\LexerTest::provideTestLex() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/LexerTest.php:54
> 
> 29) PhpParser\LexerTest::testHandleHaltCompiler
> Data Provider method PhpParser\LexerTest::provideTestHaltCompiler() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/LexerTest.php:248
> 
> 30) PhpParser\NameContextTest::testGetPossibleNames
> Data Provider method PhpParser\NameContextTest::provideTestGetPossibleNames() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/NameContextTest.php:13
> 
> 31) PhpParser\Node\Expr\CallableLikeTest::testIsFirstClassCallable
> Data Provider method 
> PhpParser\Node\Expr\CallableLikeTest::provideTestIsFirstClassCallable() is 
> not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/Expr/CallableLikeTest.php:14
> 
> 32) PhpParser\Node\IdentifierTest::testIsSpecialClassName
> Data Provider method 
> PhpParser\Node\IdentifierTest::provideTestIsSpecialClassName() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/IdentifierTest.php:16
> 
> 33) PhpParser\Node\NameTest::testIsSpecialClassName
> Data Provider method PhpParser\Node\NameTest::provideTestIsSpecialClassName() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/NameTest.php:149
> 
> 34) PhpParser\Node\Scalar\MagicConstTest::testGetName
> Data Provider method 
> PhpParser\Node\Scalar\MagicConstTest::provideTestGetName() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/Scalar/MagicConstTest.php:10
> 
> 35) PhpParser\Node\Scalar\StringTest::testParseEscapeSequences
> Data Provider method 
> PhpParser\Node\Scalar\StringTest::provideTestParseEscapeSequences() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/Scalar/StringTest.php:30
> 
> 36) PhpParser\Node\Scalar\StringTest::testCreate
> Data Provider method PhpParser\Node\Scalar\StringTest::provideTestParse() is 
> not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/Scalar/StringTest.php:40
> 
> 37) PhpParser\Node\Stmt\ClassConstTest::testModifiers
> Data Provider method PhpParser\Node\Stmt\ClassConstTest::provideModifiers() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/Stmt/ClassConstTest.php:10
> 
> 38) PhpParser\Node\Stmt\ClassMethodTest::testModifiers
> Data Provider method PhpParser\Node\Stmt\ClassMethodTest::provideModifiers() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/Stmt/ClassMethodTest.php:14
> 
> 39) PhpParser\Node\Stmt\ClassMethodTest::testImplicitPublic
> Data Provider method 
> PhpParser\Node\Stmt\ClassMethodTest::implicitPublicModifiers() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/Stmt/ClassMethodTest.php:52
> 
> 40) PhpParser\Node\Stmt\ClassMethodTest::testMagic
> Data Provider method PhpParser\Node\Stmt\ClassMethodTest::provideMagics() is 
> not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/Stmt/ClassMethodTest.php:74
> 
> 41) PhpParser\Node\Stmt\PropertyTest::testModifiers
> Data Provider method PhpParser\Node\Stmt\PropertyTest::provideModifiers() is 
> not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Node/Stmt/PropertyTest.php:10
> 
> 42) PhpParser\NodeAbstractTest::testConstruct
> Data Provider method PhpParser\NodeAbstractTest::provideNodes() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/NodeAbstractTest.php:55
> 
> 43) PhpParser\NodeAbstractTest::testGetDocComment
> Data Provider method PhpParser\NodeAbstractTest::provideNodes() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/NodeAbstractTest.php:80
> 
> 44) PhpParser\NodeAbstractTest::testChange
> Data Provider method PhpParser\NodeAbstractTest::provideNodes() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/NodeAbstractTest.php:124
> 
> 45) PhpParser\NodeAbstractTest::testIteration
> Data Provider method PhpParser\NodeAbstractTest::provideNodes() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/NodeAbstractTest.php:142
> 
> 46) PhpParser\NodeDumperTest::testDump
> Data Provider method PhpParser\NodeDumperTest::provideTestDump() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/NodeDumperTest.php:14
> 
> 47) PhpParser\NodeTraverserTest::testInvalidReturn
> Data Provider method PhpParser\NodeTraverserTest::provideTestInvalidReturn() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/NodeTraverserTest.php:309
> 
> 48) PhpParser\NodeVisitor\NameResolverTest::testError
> Data Provider method 
> PhpParser\NodeVisitor\NameResolverTest::provideTestError() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/NodeVisitor/NameResolverTest.php:395
> 
> 49) PhpParser\Parser\MultipleTest::testParse
> Data Provider method PhpParser\Parser\MultipleTest::provideTestParse() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/Parser/MultipleTest.php:32
> 
> 50) PhpParser\Parser\MultipleTest::testExtraAttributes
> Data Provider method 
> PhpParser\Parser\MultipleTest::provideTestExtraAttributes() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/ParserTest.php:119
> 
> 51) PhpParser\Parser\Php5Test::testExtraAttributes
> Data Provider method PhpParser\Parser\Php5Test::provideTestExtraAttributes() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/ParserTest.php:119
> 
> 52) PhpParser\Parser\Php7Test::testExtraAttributes
> Data Provider method PhpParser\Parser\Php7Test::provideTestExtraAttributes() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/ParserTest.php:119
> 
> 53) PhpParser\ParserFactoryTest::testCreate
> Data Provider method PhpParser\ParserFactoryTest::provideTestCreate() is not 
> static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/ParserFactoryTest.php:11
> 
> 54) PhpParser\PrettyPrinterTest::testPrettyPrint
> Data Provider method PhpParser\PrettyPrinterTest::provideTestPrettyPrint() is 
> not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/PrettyPrinterTest.php:59
> 
> 55) PhpParser\PrettyPrinterTest::testPrettyPrintFile
> Data Provider method 
> PhpParser\PrettyPrinterTest::provideTestPrettyPrintFile() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/PrettyPrinterTest.php:67
> 
> 56) PhpParser\PrettyPrinterTest::testKindAttributes
> Data Provider method PhpParser\PrettyPrinterTest::provideTestKindAttributes() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/PrettyPrinterTest.php:120
> 
> 57) PhpParser\PrettyPrinterTest::testUnnaturalLiterals
> Data Provider method 
> PhpParser\PrettyPrinterTest::provideTestUnnaturalLiterals() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/PrettyPrinterTest.php:166
> 
> 58) PhpParser\PrettyPrinterTest::testFormatPreservingPrint
> Data Provider method 
> PhpParser\PrettyPrinterTest::provideTestFormatPreservingPrint() is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/PrettyPrinterTest.php:217
> 
> 59) PhpParser\PrettyPrinterTest::testRoundTripPrint
> Data Provider method PhpParser\PrettyPrinterTest::provideTestRoundTripPrint() 
> is not static
> 
> /<<PKGBUILDDIR>>/test/PhpParser/PrettyPrinterTest.php:261
> 
> ERRORS!
> Tests: 1692, Assertions: 3148, Errors: 1, Warnings: 1, Deprecations: 60.
> make[1]: *** [debian/rules:24: override_dh_auto_test] Error 2


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

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

-- 
Athos Ribeiro

Reply via email to