[pkg-php-pear] Bug#1070636: phpunit-type: FTBFS with phpunit 11: There were 20 PHPUnit errors

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:34:04 BST 2024


Source: phpunit-type
Version: 3.2.1-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-type 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 20 PHPUnit errors:
> 
> 1) SebastianBergmann\Type\ReflectionMapperTest::testMapsFromReturnType
> The data provider specified for SebastianBergmann\Type\ReflectionMapperTest::testMapsFromReturnType is invalid
> Data Provider method SebastianBergmann\Type\ReflectionMapperTest::typeProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/ReflectionMapperTest.php:59
> 
> 2) SebastianBergmann\Type\FalseTypeTest::testIsAssignable
> The data provider specified for SebastianBergmann\Type\FalseTypeTest::testIsAssignable is invalid
> Data Provider method SebastianBergmann\Type\FalseTypeTest::assignableTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/FalseTypeTest.php:30
> 
> 3) SebastianBergmann\Type\FalseTypeTest::testIsNotAssignable
> The data provider specified for SebastianBergmann\Type\FalseTypeTest::testIsNotAssignable is invalid
> Data Provider method SebastianBergmann\Type\FalseTypeTest::notAssignableTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/FalseTypeTest.php:48
> 
> 4) SebastianBergmann\Type\IntersectionTypeTest::testAssignableTypesAreRecognized
> The data provider specified for SebastianBergmann\Type\IntersectionTypeTest::testAssignableTypesAreRecognized is invalid
> Data Provider method SebastianBergmann\Type\IntersectionTypeTest::assignableProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/IntersectionTypeTest.php:90
> 
> 5) SebastianBergmann\Type\MixedTypeTest::testOtherTypeCanBeAssigned
> The data provider specified for SebastianBergmann\Type\MixedTypeTest::testOtherTypeCanBeAssigned is invalid
> Data Provider method SebastianBergmann\Type\MixedTypeTest::typeProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/MixedTypeTest.php:50
> 
> 6) SebastianBergmann\Type\NeverTypeTest::testIsAssignable
> The data provider specified for SebastianBergmann\Type\NeverTypeTest::testIsAssignable is invalid
> Data Provider method SebastianBergmann\Type\NeverTypeTest::assignableTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/NeverTypeTest.php:28
> 
> 7) SebastianBergmann\Type\NeverTypeTest::testIsNotAssignable
> The data provider specified for SebastianBergmann\Type\NeverTypeTest::testIsNotAssignable is invalid
> Data Provider method SebastianBergmann\Type\NeverTypeTest::notAssignableTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/NeverTypeTest.php:45
> 
> 8) SebastianBergmann\Type\NullTypeTest::testIsAssignable
> The data provider specified for SebastianBergmann\Type\NullTypeTest::testIsAssignable is invalid
> Data Provider method SebastianBergmann\Type\NullTypeTest::assignableTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/NullTypeTest.php:33
> 
> 9) SebastianBergmann\Type\NullTypeTest::testIsNotAssignable
> The data provider specified for SebastianBergmann\Type\NullTypeTest::testIsNotAssignable is invalid
> Data Provider method SebastianBergmann\Type\NullTypeTest::notAssignable() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/NullTypeTest.php:52
> 
> 10) SebastianBergmann\Type\SimpleTypeTest::testIsAssignable
> The data provider specified for SebastianBergmann\Type\SimpleTypeTest::testIsAssignable is invalid
> Data Provider method SebastianBergmann\Type\SimpleTypeTest::assignablePairs() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/SimpleTypeTest.php:109
> 
> 11) SebastianBergmann\Type\SimpleTypeTest::testIsNotAssignable
> The data provider specified for SebastianBergmann\Type\SimpleTypeTest::testIsNotAssignable is invalid
> Data Provider method SebastianBergmann\Type\SimpleTypeTest::notAssignablePairs() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/SimpleTypeTest.php:130
> 
> 12) SebastianBergmann\Type\TrueTypeTest::testIsAssignable
> The data provider specified for SebastianBergmann\Type\TrueTypeTest::testIsAssignable is invalid
> Data Provider method SebastianBergmann\Type\TrueTypeTest::assignableTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/TrueTypeTest.php:32
> 
> 13) SebastianBergmann\Type\TrueTypeTest::testIsNotAssignable
> The data provider specified for SebastianBergmann\Type\TrueTypeTest::testIsNotAssignable is invalid
> Data Provider method SebastianBergmann\Type\TrueTypeTest::notAssignableTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/TrueTypeTest.php:50
> 
> 14) SebastianBergmann\Type\TypeTest::testTypeMappingFromValue
> The data provider specified for SebastianBergmann\Type\TypeTest::testTypeMappingFromValue is invalid
> Data Provider method SebastianBergmann\Type\TypeTest::valuesToNullableType() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/TypeTest.php:31
> 
> 15) SebastianBergmann\Type\TypeTest::testCanBeCreatedFromName
> The data provider specified for SebastianBergmann\Type\TypeTest::testCanBeCreatedFromName is invalid
> Data Provider method SebastianBergmann\Type\TypeTest::typeFromName() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/TypeTest.php:55
> 
> 16) SebastianBergmann\Type\UnionTypeTest::testCanBeRepresentedAsString
> The data provider specified for SebastianBergmann\Type\UnionTypeTest::testCanBeRepresentedAsString is invalid
> Data Provider method SebastianBergmann\Type\UnionTypeTest::stringRepresentationProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/UnionTypeTest.php:31
> 
> 17) SebastianBergmann\Type\UnionTypeTest::testAssignableTypesAreRecognized
> The data provider specified for SebastianBergmann\Type\UnionTypeTest::testAssignableTypesAreRecognized is invalid
> Data Provider method SebastianBergmann\Type\UnionTypeTest::assignableProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/UnionTypeTest.php:114
> 
> 18) SebastianBergmann\Type\UnknownTypeTest::testIsAssignable
> The data provider specified for SebastianBergmann\Type\UnknownTypeTest::testIsAssignable is invalid
> Data Provider method SebastianBergmann\Type\UnknownTypeTest::assignableTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/UnknownTypeTest.php:33
> 
> 19) SebastianBergmann\Type\VoidTypeTest::testIsAssignable
> The data provider specified for SebastianBergmann\Type\VoidTypeTest::testIsAssignable is invalid
> Data Provider method SebastianBergmann\Type\VoidTypeTest::assignableTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/VoidTypeTest.php:28
> 
> 20) SebastianBergmann\Type\VoidTypeTest::testIsNotAssignable
> The data provider specified for SebastianBergmann\Type\VoidTypeTest::testIsNotAssignable is invalid
> Data Provider method SebastianBergmann\Type\VoidTypeTest::notAssignableTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/unit/type/VoidTypeTest.php:45
> 
> --
> 
> There were 60 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\Type\ParameterTest. 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 method SebastianBergmann\Type\ReflectionMapperTest::testMapsFromReturnType(). 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 class SebastianBergmann\Type\ReflectionMapperTest. 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 method SebastianBergmann\Type\ReflectionMapperTest::testMapsFromIntersectionReturnType(). 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\Type\ReflectionMapperTest::testMapsFromUnionReturnType(). 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 method SebastianBergmann\Type\ReflectionMapperTest::testMapsFromUnionReturnTypeWithSelf(). 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 method SebastianBergmann\Type\ReflectionMapperTest::testMapsFromMixedReturnType(). 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 method SebastianBergmann\Type\ReflectionMapperTest::testMapsFromStaticReturnType(). 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\Type\ReflectionMapperTest::testMapsFromNullableStaticReturnType(). 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 method SebastianBergmann\Type\ReflectionMapperTest::testMapsFromUnionWithStaticReturnType(). 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\Type\ReflectionMapperTest::testMapsFromUnionReturnTypeWithIntOrFalse(). 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\Type\ReflectionMapperTest::testMapsFromClassNamedNeverReturnType(). 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\Type\ReflectionMapperTest::testMapsFromNeverReturnType(). 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\Type\ReflectionMapperTest::testMapsFromTrueReturnType(). 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\Type\ReflectionMapperTest::testMapsFromFalseReturnType(). 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\Type\ReflectionMapperTest::testMapsFromNullReturnType(). 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\Type\ReflectionMapperTest::testMapsFromDisjunctiveNormalFormReturnType(). 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\Type\ReflectionMapperTest::testMapsFromUnionTypeParameters(). 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\Type\ReflectionMapperTest::testMapsFromIntersectionTypeParameters(). 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\Type\ReflectionMapperTest::testMapsFromDisjunctiveNormalFormParameters(). 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 class SebastianBergmann\Type\TypeNameTest. 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 class SebastianBergmann\Type\CallableTypeTest. 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 class SebastianBergmann\Type\FalseTypeTest. 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\Type\FalseTypeTest::testIsAssignable(). 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\Type\FalseTypeTest::testIsNotAssignable(). 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 class SebastianBergmann\Type\GenericObjectTypeTest. 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 class SebastianBergmann\Type\IntersectionTypeTest. 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 method SebastianBergmann\Type\IntersectionTypeTest::testAssignableTypesAreRecognized(). 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\Type\IterableTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 31) Metadata found in doc-comment for class SebastianBergmann\Type\MixedTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 32) Metadata found in doc-comment for method SebastianBergmann\Type\MixedTypeTest::testOtherTypeCanBeAssigned(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 33) Metadata found in doc-comment for class SebastianBergmann\Type\NeverTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 34) Metadata found in doc-comment for method SebastianBergmann\Type\NeverTypeTest::testIsAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 35) Metadata found in doc-comment for method SebastianBergmann\Type\NeverTypeTest::testIsNotAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 36) Metadata found in doc-comment for method SebastianBergmann\Type\NullTypeTest::testIsAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 37) Metadata found in doc-comment for class SebastianBergmann\Type\NullTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 38) Metadata found in doc-comment for method SebastianBergmann\Type\NullTypeTest::testIsNotAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 39) Metadata found in doc-comment for class SebastianBergmann\Type\ObjectTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 40) Metadata found in doc-comment for class SebastianBergmann\Type\SimpleTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 41) Metadata found in doc-comment for method SebastianBergmann\Type\SimpleTypeTest::testIsAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 42) Metadata found in doc-comment for method SebastianBergmann\Type\SimpleTypeTest::testIsNotAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 43) Metadata found in doc-comment for class SebastianBergmann\Type\StaticTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 44) Metadata found in doc-comment for method SebastianBergmann\Type\StaticTypeTest::testSubTypeIsAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 45) Metadata found in doc-comment for class SebastianBergmann\Type\TrueTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 46) Metadata found in doc-comment for method SebastianBergmann\Type\TrueTypeTest::testIsAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 47) Metadata found in doc-comment for method SebastianBergmann\Type\TrueTypeTest::testIsNotAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 48) Metadata found in doc-comment for method SebastianBergmann\Type\TypeTest::testTypeMappingFromValue(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 49) Metadata found in doc-comment for class SebastianBergmann\Type\TypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 50) Metadata found in doc-comment for method SebastianBergmann\Type\TypeTest::testCanBeCreatedFromName(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 51) Metadata found in doc-comment for method SebastianBergmann\Type\TypeTest::testMapsFromClassNamedNever(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 52) Metadata found in doc-comment for method SebastianBergmann\Type\TypeTest::testMapsFromNever(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 53) Metadata found in doc-comment for method SebastianBergmann\Type\UnionTypeTest::testCanBeRepresentedAsString(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 54) Metadata found in doc-comment for class SebastianBergmann\Type\UnionTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 55) Metadata found in doc-comment for method SebastianBergmann\Type\UnionTypeTest::testAssignableTypesAreRecognized(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 56) Metadata found in doc-comment for method SebastianBergmann\Type\UnknownTypeTest::testIsAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 57) Metadata found in doc-comment for class SebastianBergmann\Type\UnknownTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 58) Metadata found in doc-comment for class SebastianBergmann\Type\VoidTypeTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 59) Metadata found in doc-comment for method SebastianBergmann\Type\VoidTypeTest::testIsAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> 60) Metadata found in doc-comment for method SebastianBergmann\Type\VoidTypeTest::testIsNotAssignable(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> ERRORS!
> Tests: 134, Assertions: 391, Errors: 20, Deprecations: 60, Skipped: 2.
> make[1]: *** [debian/rules:20: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/phpunit-type/phpunit-type_3.2.1-1+rebuild1714378451_amd64-2024-04-29T08:14:12Z.build



More information about the pkg-php-pear mailing list