[pkg-php-pear] Bug#1039763: php-deepcopy: FTBFS with phpunit 10: make[1]: *** [debian/rules:27: override_dh_auto_test] Error 2
Athos Ribeiro
athoscribeiro at gmail.com
Wed Jun 28 22:03:17 BST 2023
Source: php-deepcopy
Version: 1.11.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: phpunit
Hi,
We will start the phpunit 10 transition in unstable soon. During a test
rebuild, php-deepcopy 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):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit --bootstrap vendor/autoload.php
> PHPUnit 10.2.2 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 8.2.7
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
>
> D................................................................ 65 / 78 ( 83%)
> .....ER...... 78 / 78 (100%)
>
> Time: 00:00.017, Memory: 8.00 MB
>
> 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) 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
>
> --
>
> 9 tests triggered 9 PHPUnit deprecations:
>
> 1) DeepCopyTest\DeepCopyTest::test_it_can_copy_scalar_values
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> Data Provider method DeepCopyTest\TypeMatcher\TypeMatcherTest::provideElements() is not static
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/TypeMatcher/TypeMatcherTest.php:17
>
> --
>
> There was 1 risky test:
>
> 1) DeepCopyTest\TypeFilter\Spl\ArrayObjectFilterTest::test_it_deep_copies_an_array_object
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/DeepCopyTest/TypeFilter/Spl/ArrayObjectFilterTest.php:37
>
> ERRORS!
> Tests: 78, Assertions: 152, Errors: 1, Deprecations: 10, Risky: 1.
> make[1]: *** [debian/rules:27: 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-deepcopy/
A phpunit reverse-dependencies rebuild status is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html
--
Athos Ribeiro
More information about the pkg-php-pear
mailing list