[pkg-php-pear] Bug#1070635: phpunit-recursion-context: FTBFS with phpunit 11: There were 5 PHPUnit errors

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:33:57 BST 2024


Source: phpunit-recursion-context
Version: 4.0.5-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-recursion-context 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 src/autoload.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
> 
> .                                                                   1 / 1 (100%)
> 
> Time: 00:00.002, Memory: 8.00 MB
> 
> There were 5 PHPUnit errors:
> 
> 1) SebastianBergmann\RecursionContext\ContextTest::testAddFails
> The data provider specified for SebastianBergmann\RecursionContext\ContextTest::testAddFails is invalid
> Data Provider method SebastianBergmann\RecursionContext\ContextTest::failsProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ContextTest.php:88
> 
> 2) SebastianBergmann\RecursionContext\ContextTest::testContainsFails
> The data provider specified for SebastianBergmann\RecursionContext\ContextTest::testContainsFails is invalid
> Data Provider method SebastianBergmann\RecursionContext\ContextTest::failsProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ContextTest.php:99
> 
> 3) SebastianBergmann\RecursionContext\ContextTest::testAdd
> The data provider specified for SebastianBergmann\RecursionContext\ContextTest::testAdd is invalid
> Data Provider method SebastianBergmann\RecursionContext\ContextTest::valuesProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ContextTest.php:110
> 
> 4) SebastianBergmann\RecursionContext\ContextTest::testContainsFound
> The data provider specified for SebastianBergmann\RecursionContext\ContextTest::testContainsFound is invalid
> Data Provider method SebastianBergmann\RecursionContext\ContextTest::valuesProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ContextTest.php:131
> 
> 5) SebastianBergmann\RecursionContext\ContextTest::testContainsNotFound
> The data provider specified for SebastianBergmann\RecursionContext\ContextTest::testContainsNotFound is invalid
> Data Provider method SebastianBergmann\RecursionContext\ContextTest::valuesProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ContextTest.php:143
> 
> --
> 
> There were 7 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 SebastianBergmann\RecursionContext\ContextTest::testAddFails(). 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\RecursionContext\ContextTest. 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\RecursionContext\ContextTest::testContainsFails(). 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\RecursionContext\ContextTest::testAdd(). 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\RecursionContext\ContextTest::testContainsFound(). 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\RecursionContext\ContextTest::testContainsNotFound(). 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: 1, Assertions: 1, Errors: 5, Deprecations: 7.
> make[1]: *** [debian/rules:9: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/phpunit-recursion-context/phpunit-recursion-context_4.0.5-1+rebuild1714378349_amd64-2024-04-29T08:12:30Z.build



More information about the pkg-php-pear mailing list