[pkg-php-pear] Bug#1070530: php-doctrine-annotations: FTBFS with phpunit 11: PHP Fatal error: Cannot override final method PHPUnit\Framework\TestCase::expectExceptionMessageMatches() in /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Annotations/DocParserTest.php on line 1828

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:13:44 BST 2024


Source: php-doctrine-annotations
Version: 2.0.1-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-doctrine-annotations 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>>'
> phpab \
> 	--output lib/Doctrine/Common/Annotations/autoload.php \
> 	--template debian/autoload.php.tpl \
> 	lib/Doctrine/Common/Annotations
> phpab %development% - Copyright (C) 2009 - 2024 by Arne Blankerts and Contributors
> 
> Scanning directory lib/Doctrine/Common/Annotations
> 
> Autoload file lib/Doctrine/Common/Annotations/autoload.php generated.
> 
> mkdir --parents vendor
> ln -s /usr/share/php/Doctrine/Common/Cache lib/Doctrine/Common
> ln -s /usr/share/php/Doctrine/Common/Lexer lib/Doctrine/Common
> ln -s /usr/share/php/Psr lib
> ln -s /usr/share/php/Symfony lib
> phpabtpl \
> 	--require doctrine/annotations \
> 	--require doctrine/cache \
> 	--require symfony/cache \
> 	--require-file ../tests/Doctrine/Tests/Common/Annotations/Fixtures/functions.php \
> 	--require-file ../tests/Doctrine/Tests/Common/Annotations/Fixtures/SingleClassLOC1000.php \
> 	> debian/autoload.tests.php.tpl
> Proceeding without a composer.json file.phpab \
> 	--output vendor/autoload.php \
> 	--template debian/autoload.tests.php.tpl \
> 	--exclude */ClassNoNamespaceNoComment.php \
> 	tests/Doctrine/Tests
> phpab %development% - Copyright (C) 2009 - 2024 by Arne Blankerts and Contributors
> 
> Scanning directory tests/Doctrine/Tests
> 
> Autoload file vendor/autoload.php generated.
> 
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    debian/rules override_dh_auto_test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit --include-path lib
> PHP Fatal error:  Cannot override final method PHPUnit\Framework\TestCase::expectExceptionMessageMatches() in /<<PKGBUILDDIR>>/tests/Doctrine/Tests/Common/Annotations/DocParserTest.php on line 1828
> make[1]: *** [debian/rules:30: override_dh_auto_test] Error 255


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-doctrine-annotations/php-doctrine-annotations_2.0.1-2+rebuild1714366318_amd64-2024-04-29T04:51:59Z.build



More information about the pkg-php-pear mailing list