[pkg-php-pear] Bug#1070558: php-kissifrot-php-ixr: FTBFS with phpunit 11: Data Provider method IXR\tests\DataType\DateTest::provideDates() is not static

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:17:41 BST 2024


Source: php-kissifrot-php-ixr
Version: 1.8.4-2
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-kissifrot-php-ixr 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
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
> 
> There was 1 PHPUnit error:
> 
> 1) IXR\tests\DataType\DateTest::testParseIso
> The data provider specified for IXR\tests\DataType\DateTest::testParseIso is invalid
> Data Provider method IXR\tests\DataType\DateTest::provideDates() is not static
> 
> /<<PKGBUILDDIR>>/tests/DataType/DateTest.php:47
> 
> --
> 
> There were 2 PHPUnit test runner warnings:
> 
> 1) No tests found in class "IXR\tests\DataType\DateTest".
> 
> 2) Class MessageTest cannot be found in /<<PKGBUILDDIR>>/tests/Message/MessageTest.php
> 
> --
> 
> There were 2 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 IXR\tests\DataType\DateTest::testParseIso(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
> 
> No tests executed!
> make[1]: *** [debian/rules:36: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/1/php-kissifrot-php-ixr/php-kissifrot-php-ixr_1.8.4-2+rebuild1714780686_amd64-2024-05-03T23:58:07Z.build



More information about the pkg-php-pear mailing list