Source: phpunit-code-unit Version: 1.0.8-3 Severity: normal Justification: FTBFS Tags: trixie sid ftbfs User: pkg-php-p...@lists.alioth.debian.org Usertags: phpunit11
Hi, phpunit 11 is out and is now available in experimental. During a test rebuild, phpunit-code-unit 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 30 PHPUnit test runner deprecations: > > 1) Your XML configuration validates against a deprecated schema. Migrate your > XML configuration using "--migrate-configuration"! > > 2) Metadata found in doc-comment for class > SebastianBergmann\CodeUnit\ClassMethodUnitTest. Metadata in doc-comments is > deprecated and will no longer be supported in PHPUnit 12. Update your test > code to use attributes instead. > > 3) Metadata found in doc-comment for class > SebastianBergmann\CodeUnit\ClassUnitTest. Metadata in doc-comments is > deprecated and will no longer be supported in PHPUnit 12. Update your test > code to use attributes instead. > > 4) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\CodeUnitCollectionTest::testCanBeCreatedFromArrayOfObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 5) Metadata found in doc-comment for class > SebastianBergmann\CodeUnit\CodeUnitCollectionTest. Metadata in doc-comments > is deprecated and will no longer be supported in PHPUnit 12. Update your test > code to use attributes instead. > > 6) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\CodeUnitCollectionTest::testCanBeCreatedFromListOfObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 7) Metadata found in doc-comment for class > SebastianBergmann\CodeUnit\FunctionUnitTest. Metadata in doc-comments is > deprecated and will no longer be supported in PHPUnit 12. Update your test > code to use attributes instead. > > 8) Metadata found in doc-comment for class > SebastianBergmann\CodeUnit\InterfaceMethodUnitTest. Metadata in doc-comments > is deprecated and will no longer be supported in PHPUnit 12. Update your test > code to use attributes instead. > > 9) Metadata found in doc-comment for class > SebastianBergmann\CodeUnit\InterfaceUnitTest. Metadata in doc-comments is > deprecated and will no longer be supported in PHPUnit 12. Update your test > code to use attributes instead. > > 10) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithFunctionNameToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 11) Metadata found in doc-comment for class > SebastianBergmann\CodeUnit\MapperTest. Metadata in doc-comments is deprecated > and will no longer be supported in PHPUnit 12. Update your test code to use > attributes instead. > > 12) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithFunctionNamePrefixedWithDoubleColonsToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 13) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 14) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testMapClassesAndTheTraitsTheyUseToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 15) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndSelectorForParentClassesToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 16) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndMethodNameToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 17) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndPublicMethodSelectorToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 18) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndNoPublicMethodSelectorToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 19) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndProtectedMethodSelectorToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 20) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndNoProtectedMethodSelectorToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 21) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndPrivateMethodSelectorToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 22) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndNoPrivateMethodSelectorToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 23) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithInterfaceNameToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 24) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithInterfaceNameAndMethodNameToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 25) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithTraitNameToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 26) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithTraitNameAndMethodNameToCodeUnitObjects(). > Metadata in doc-comments is deprecated and will no longer be supported in > PHPUnit 12. Update your test code to use attributes instead. > > 27) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testIssue3(). Metadata in doc-comments > is deprecated and will no longer be supported in PHPUnit 12. Update your test > code to use attributes instead. > > 28) Metadata found in doc-comment for method > SebastianBergmann\CodeUnit\MapperTest::testIssue5(). Metadata in doc-comments > is deprecated and will no longer be supported in PHPUnit 12. Update your test > code to use attributes instead. > > 29) Metadata found in doc-comment for class > SebastianBergmann\CodeUnit\TraitMethodUnitTest. Metadata in doc-comments is > deprecated and will no longer be supported in PHPUnit 12. Update your test > code to use attributes instead. > > 30) Metadata found in doc-comment for class > SebastianBergmann\CodeUnit\TraitUnitTest. Metadata in doc-comments is > deprecated and will no longer be supported in PHPUnit 12. Update your test > code to use attributes instead. > > -- > > There were 9 errors: > > 1) > SebastianBergmann\CodeUnit\CodeUnitCollectionTest::testCanBeCreatedFromArrayOfObjects > Error: Call to undefined method > SebastianBergmann\CodeUnit\CodeUnitCollection::fromArray() > > /<<PKGBUILDDIR>>/tests/unit/CodeUnitCollectionTest.php:48 > > 2) > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndSelectorForParentClassesToCodeUnitObjects > SebastianBergmann\CodeUnit\InvalidCodeUnitException: > "SebastianBergmann\CodeUnit\Fixture\FixtureChildClassWithTrait<extended>" is > not a valid code unit > > /<<PKGBUILDDIR>>/tests/unit/MapperTest.php:84 > > 3) > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndPublicMethodSelectorToCodeUnitObjects > SebastianBergmann\CodeUnit\InvalidCodeUnitException: > "SebastianBergmann\CodeUnit\Fixture\FixtureClass::<public>" is not a valid > code unit > > /<<PKGBUILDDIR>>/tests/unit/MapperTest.php:108 > > 4) > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndNoPublicMethodSelectorToCodeUnitObjects > SebastianBergmann\CodeUnit\InvalidCodeUnitException: > "SebastianBergmann\CodeUnit\Fixture\FixtureClass::<!public>" is not a valid > code unit > > /<<PKGBUILDDIR>>/tests/unit/MapperTest.php:119 > > 5) > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndProtectedMethodSelectorToCodeUnitObjects > SebastianBergmann\CodeUnit\InvalidCodeUnitException: > "SebastianBergmann\CodeUnit\Fixture\FixtureClass::<protected>" is not a valid > code unit > > /<<PKGBUILDDIR>>/tests/unit/MapperTest.php:131 > > 6) > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndNoProtectedMethodSelectorToCodeUnitObjects > SebastianBergmann\CodeUnit\InvalidCodeUnitException: > "SebastianBergmann\CodeUnit\Fixture\FixtureClass::<!protected>" is not a > valid code unit > > /<<PKGBUILDDIR>>/tests/unit/MapperTest.php:142 > > 7) > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndPrivateMethodSelectorToCodeUnitObjects > SebastianBergmann\CodeUnit\InvalidCodeUnitException: > "SebastianBergmann\CodeUnit\Fixture\FixtureClass::<private>" is not a valid > code unit > > /<<PKGBUILDDIR>>/tests/unit/MapperTest.php:154 > > 8) > SebastianBergmann\CodeUnit\MapperTest::testCanMapStringWithClassNameAndNoPrivateMethodSelectorToCodeUnitObjects > SebastianBergmann\CodeUnit\InvalidCodeUnitException: > "SebastianBergmann\CodeUnit\Fixture\FixtureClass::<!private>" is not a valid > code unit > > /<<PKGBUILDDIR>>/tests/unit/MapperTest.php:165 > > 9) SebastianBergmann\CodeUnit\MapperTest::testIssue5 > SebastianBergmann\CodeUnit\InvalidCodeUnitException: > "SebastianBergmann\CodeUnit\Fixture\Issue5Exception::<!public>" is not a > valid code unit > > /<<PKGBUILDDIR>>/tests/unit/MapperTest.php:294 > > ERRORS! > Tests: 51, Assertions: 113, Errors: 9, Deprecations: 30. > 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/0/phpunit-code-unit/phpunit-code-unit_1.0.8-3+rebuild1714377686_amd64-2024-04-29T08:01:27Z.build