[pkg-php-pear] Bug#1039813: php-parsedown: FTBFS with phpunit 10: make[1]: *** [debian/rules:15: override_dh_auto_test] Error 2

Athos Ribeiro athoscribeiro at gmail.com
Wed Jun 28 22:19:04 BST 2023


Source: php-parsedown
Version: 1.7.4-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-parsedown 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
> PHP Warning:  foreach() argument must be of type array|object, null given in /<<PKGBUILDDIR>>/test/ParsedownTest.php on line 98
> PHPUnit 10.2.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.7
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> 
> D...                                                                4 / 4 (100%)
> 
> Time: 00:00.004, Memory: 8.00 MB
> 
> There was 1 PHPUnit error:
> 
> 1) ParsedownTest::test_
> The data provider specified for ParsedownTest::test_ is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/test/ParsedownTest.php:44
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) Test results may not be as expected because the XML configuration file did not pass validation:
> 
>   Line 4:
>   - Element 'testsuite': The attribute 'name' is required but missing.
> 
> 
> --
> 
> 1 test triggered 1 PHPUnit deprecation:
> 
> 1) ParsedownTest::test_
> Data Provider method ParsedownTest::data() is not static
> 
> /<<PKGBUILDDIR>>/test/ParsedownTest.php:44
> 
> WARNINGS!
> Tests: 4, Assertions: 10, Warnings: 1, Deprecations: 1.
> make[1]: *** [debian/rules:15: 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-parsedown/

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