[pkg-php-pear] Bug#1070514: pdepend: FTBFS with phpunit 11: PHP Fatal error: Cannot override final method PHPUnit\Framework\TestCase::runTest() in /<<PKGBUILDDIR>>/build/src/test/php/PDepend/AbstractTest.php on line 132
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:07:46 BST 2024
Source: pdepend
Version: 2.16.2-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,
pdepend 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>>'
> mkdir -p build/src/main/php/data/PDepend build/vendor
> cp -a build.properties phpunit.xml.dist src build
> cp -a src/main/resources build/src/main/php/data/PDepend
> phpab \
> --output build/src/main/php/PDepend/autoload.php \
> --template debian/autoload.php.tpl \
> build/src/main/php/PDepend
> phpab %development% - Copyright (C) 2009 - 2024 by Arne Blankerts and Contributors
>
> Scanning directory build/src/main/php/PDepend
>
> Autoload file build/src/main/php/PDepend/autoload.php generated.
>
> sed -i s, at php_bin@,workaround, build/src/bin/pdepend
> sed -i s, at package_version@,2.16.2, \
> build/src/main/php/PDepend/Report/*/Xml.php \
> build/src/test/php/PDepend/Report/*/_expected/*.xml \
> build/src/main/php/PDepend/TextUI/Command.php
> phpab --output build/vendor/autoload.php \
> --template debian/autoload.tests.php.tpl \
> build/src/test/php/PDepend
> phpab %development% - Copyright (C) 2009 - 2024 by Arne Blankerts and Contributors
>
> Scanning directory build/src/test/php/PDepend
>
> Autoload file build/vendor/autoload.php generated.
>
> ln -s src/main/php/PDepend /usr/share/php/Symfony \
> /usr/share/php/Psr /usr/share/php/ProxyManager \
> /usr/share/php/Laminas build/
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> debian/rules override_dh_auto_test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> cd build && phpunit
> PHP Fatal error: Cannot override final method PHPUnit\Framework\TestCase::runTest() in /<<PKGBUILDDIR>>/build/src/test/php/PDepend/AbstractTest.php on line 132
> make[1]: *** [debian/rules:32: override_dh_auto_test] Error 255
The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/pdepend/pdepend_2.16.2-2+rebuild1714364931_amd64-2024-04-29T04:28:53Z.build
More information about the pkg-php-pear
mailing list