[pkg-php-pear] Bug#1070527: php-deepcopy: FTBFS with phpunit 11: There were 9 PHPUnit errors
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:13:16 BST 2024
Source: php-deepcopy
Version: 1.11.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,
php-deepcopy 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):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit --bootstrap vendor/autoload.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
>
> .....D.D.......D......................D..E. 43 / 43 (100%)
>
> Time: 00:00.010, Memory: 8.00 MB
>
> There were 9 PHPUnit errors:
>
> 1) DeepCopyTest\DeepCopyTest::test_it_can_copy_scalar_values
> The data provider specified for DeepCopyTest\DeepCopyTest::test_it_can_copy_scalar_values is invalid
> Data Provider method DeepCopyTest\DeepCopyTest::provideScalarValues() is not static
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/DeepCopyTest.php:47
>
> 2) DeepCopyTest\DeepCopyTest::test_it_can_copy_an_object_with_scalar_properties
> The data provider specified for DeepCopyTest\DeepCopyTest::test_it_can_copy_an_object_with_scalar_properties is invalid
> Data Provider method DeepCopyTest\DeepCopyTest::provideObjectWithScalarValues() is not static
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/DeepCopyTest.php:95
>
> 3) DeepCopyTest\Filter\ReplaceFilterTest::test_it_applies_the_callback_to_the_specified_property
> The data provider specified for DeepCopyTest\Filter\ReplaceFilterTest::test_it_applies_the_callback_to_the_specified_property is invalid
> Data Provider method DeepCopyTest\Filter\ReplaceFilterTest::provideCallbacks() is not static
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/Filter/ReplaceFilterTest.php:17
>
> 4) DeepCopyTest\Matcher\Doctrine\DoctrineProxyMatcherTest::test_it_matches_the_given_objects
> The data provider specified for DeepCopyTest\Matcher\Doctrine\DoctrineProxyMatcherTest::test_it_matches_the_given_objects is invalid
> Data Provider method DeepCopyTest\Matcher\Doctrine\DoctrineProxyMatcherTest::providePairs() is not static
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/Matcher/Doctrine/DoctrineProxyMatcherTest.php:19
>
> 5) DeepCopyTest\Matcher\PropertyMatcherTest::test_it_matches_the_given_objects
> The data provider specified for DeepCopyTest\Matcher\PropertyMatcherTest::test_it_matches_the_given_objects is invalid
> Data Provider method DeepCopyTest\Matcher\PropertyMatcherTest::providePairs() is not static
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/Matcher/PropertyMatcherTest.php:16
>
> 6) DeepCopyTest\Matcher\PropertyNameMatcherTest::test_it_matches_the_given_property
> The data provider specified for DeepCopyTest\Matcher\PropertyNameMatcherTest::test_it_matches_the_given_property is invalid
> Data Provider method DeepCopyTest\Matcher\PropertyNameMatcherTest::providePairs() is not static
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/Matcher/PropertyNameMatcherTest.php:17
>
> 7) DeepCopyTest\Matcher\PropertyTypeMatcherTest::test_it_matches_the_given_property
> The data provider specified for DeepCopyTest\Matcher\PropertyTypeMatcherTest::test_it_matches_the_given_property is invalid
> Data Provider method DeepCopyTest\Matcher\PropertyTypeMatcherTest::providePairs() is not static
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/Matcher/PropertyTypeMatcherTest.php:18
>
> 8) DeepCopyTest\Reflection\ReflectionHelperTest::test_it_can_retrieve_an_object_property
> The data provider specified for DeepCopyTest\Reflection\ReflectionHelperTest::test_it_can_retrieve_an_object_property is invalid
> Data Provider method DeepCopyTest\Reflection\ReflectionHelperTest::provideProperties() is not static
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/Reflection/ReflectionHelperTest.php:44
>
> 9) DeepCopyTest\TypeMatcher\TypeMatcherTest::test_it_retrieves_the_object_properties
> The data provider specified for DeepCopyTest\TypeMatcher\TypeMatcherTest::test_it_retrieves_the_object_properties is invalid
> Data Provider method DeepCopyTest\TypeMatcher\TypeMatcherTest::provideElements() is not static
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/TypeMatcher/TypeMatcherTest.php:17
>
> --
>
> There were 5 PHPUnit test runner warnings:
>
> 1) No tests found in class "DeepCopyTest\Filter\ReplaceFilterTest".
>
> 2) No tests found in class "DeepCopyTest\Matcher\Doctrine\DoctrineProxyMatcherTest".
>
> 3) No tests found in class "DeepCopyTest\Matcher\PropertyMatcherTest".
>
> 4) No tests found in class "DeepCopyTest\Matcher\PropertyNameMatcherTest".
>
> 5) No tests found in class "DeepCopyTest\TypeMatcher\TypeMatcherTest".
>
> --
>
> There were 40 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 method DeepCopyTest\DeepCopyTest::test_it_can_copy_scalar_values(). 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 DeepCopyTest\DeepCopyTest. 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 DeepCopyTest\DeepCopyTest::test_it_can_copy_an_object_with_scalar_properties(). 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 DeepCopyTest\DeepCopyTest::test_it_can_copy_an_object_with_a_date_object_property(). 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 DeepCopyTest\DeepCopyTest::test_it_skips_the_copy_for_userland_datetimezone(). 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 DeepCopyTest\DeepCopyTest::test_it_skips_the_copy_for_userland_dateinterval(). 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 DeepCopyTest\DeepCopyTest::test_it_clones_objects_extending_array_object(). 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 DeepCopyTest\DeepCopyTest::test_it_can_copy_a_SplDoublyLinkedList(). 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 DeepCopyTest\DeepCopyTest::test_matchers_can_access_to_parent_private_properties(). 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 DeepCopyTest\DeepCopyTest::test_it_clones_typed_properties(). 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 DeepCopyTest\DeepCopyTest::test_it_ignores_uninitialized_typed_properties(). 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 DeepCopyTest\DeepCopyTest::test_it_keeps_enums(). 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 DeepCopyTest\DeepCopyTest::test_it_can_apply_two_filters_with_chainable_filter(). 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 class DeepCopyTest\Filter\Doctrine\DoctrineCollectionFilterTest. 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 class DeepCopyTest\Filter\Doctrine\DoctrineEmptyCollectionFilterTest. 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 class DeepCopyTest\Filter\Doctrine\DoctrineProxyFilterTest. 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 class DeepCopyTest\Filter\KeepFilterTest. 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 DeepCopyTest\Filter\ReplaceFilterTest::test_it_applies_the_callback_to_the_specified_property(). 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 class DeepCopyTest\Filter\ReplaceFilterTest. 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 class DeepCopyTest\Filter\SetNullFilterTest. 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 DeepCopyTest\Matcher\Doctrine\DoctrineProxyMatcherTest::test_it_matches_the_given_objects(). 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 DeepCopyTest\Matcher\Doctrine\DoctrineProxyMatcherTest. 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 DeepCopyTest\Matcher\PropertyMatcherTest::test_it_matches_the_given_objects(). 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 class DeepCopyTest\Matcher\PropertyMatcherTest. 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 DeepCopyTest\Matcher\PropertyNameMatcherTest::test_it_matches_the_given_property(). 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 DeepCopyTest\Matcher\PropertyNameMatcherTest. 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 DeepCopyTest\Matcher\PropertyTypeMatcherTest::test_it_matches_the_given_property(). 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 DeepCopyTest\Matcher\PropertyTypeMatcherTest. 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 method DeepCopyTest\Matcher\PropertyTypeMatcherTest::test_it_ignores_uninitialized_typed_properties(). 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 method DeepCopyTest\Matcher\PropertyTypeMatcherTest::test_it_matches_initialized_typed_properties(). 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 class DeepCopyTest\Reflection\ReflectionHelperTest. 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 method DeepCopyTest\Reflection\ReflectionHelperTest::test_it_can_retrieve_an_object_property(). 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 class DeepCopyTest\TypeFilter\Date\DateIntervalFilterTest. 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 class DeepCopyTest\TypeFilter\ReplaceFilterTest. 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 class DeepCopyTest\TypeFilter\ShallowCopyFilterTest. 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 DeepCopyTest\TypeFilter\Spl\ArrayObjectFilterTest. 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 class DeepCopyTest\TypeFilter\Spl\SplDoublyLinkedListFilterTest. 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 method DeepCopyTest\TypeMatcher\TypeMatcherTest::test_it_retrieves_the_object_properties(). 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 DeepCopyTest\TypeMatcher\TypeMatcherTest. Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> --
>
> There was 1 error:
>
> 1) DeepCopyTest\TypeFilter\Spl\ArrayObjectFilterTest::test_it_deep_copies_an_array_object
> Error: Call to undefined method DeepCopyTest\TypeFilter\Spl\ArrayObjectFilterTest::prophesize()
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/TypeFilter/Spl/ArrayObjectFilterTest.php:31
>
> ERRORS!
> Tests: 43, Assertions: 102, Errors: 10, Warnings: 5, Deprecations: 44.
> make[1]: *** [debian/rules:27: override_dh_auto_test] Error 2
The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-deepcopy/php-deepcopy_1.11.1-1+rebuild1714366170_amd64-2024-04-29T04:49:31Z.build
More information about the pkg-php-pear
mailing list