[pkg-php-pear] Bug#1082472: php-sabre-uri: FTBFS with php8.4_8.4.0~beta4-1: PHP Fatal error: Uncaught Error: Class "PHPUnit_Framework_TestCase" not found in /<<PKGBUILDDIR>>/tests/BuildTest.php:5

Athos Ribeiro athoscribeiro at gmail.com
Sat Sep 21 03:19:06 BST 2024


Source: php-sabre-uri
Version: 1.1.0-1
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: php8.4

Hi,

During a test rebuild, php-sabre-uri was found to fail to build with
php8.4 8.4.0~beta4-1 available in experimental.

There are intentions to transition to php8.4 for trixie, please see #1074180.

To reproduce this locally, you need to install php8.4 and php-defaults from
experimental on an unstable system or build chroot.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit --configuration tests/phpunit.xml.dist --bootstrap lib/autoload.php
> PHP Fatal error:  Uncaught Error: Class "PHPUnit_Framework_TestCase" not found in /<<PKGBUILDDIR>>/tests/BuildTest.php:5
> Stack trace:
> #0 /usr/share/php/PHPUnit/Util/FileLoader.php(66): include_once()
> #1 /usr/share/php/PHPUnit/Util/FileLoader.php(49): PHPUnit\Util\FileLoader::load()
> #2 /usr/share/php/PHPUnit/Framework/TestSuite.php(398): PHPUnit\Util\FileLoader::checkAndLoad()
> #3 /usr/share/php/PHPUnit/Framework/TestSuite.php(537): PHPUnit\Framework\TestSuite->addTestFile()
> #4 /usr/share/php/PHPUnit/TextUI/TestSuiteMapper.php(67): PHPUnit\Framework\TestSuite->addTestFiles()
> #5 /usr/share/php/PHPUnit/TextUI/Command.php(391): PHPUnit\TextUI\TestSuiteMapper->map()
> #6 /usr/share/php/PHPUnit/TextUI/Command.php(114): PHPUnit\TextUI\Command->handleArguments()
> #7 /usr/share/php/PHPUnit/TextUI/Command.php(99): PHPUnit\TextUI\Command->run()
> #8 /usr/bin/phpunit(107): PHPUnit\TextUI\Command::main()
> #9 {main}
> 
> Next PHPUnit\TextUI\RuntimeException: Class "PHPUnit_Framework_TestCase" not found in /usr/share/php/PHPUnit/TextUI/Command.php:101
> Stack trace:
> #0 /usr/bin/phpunit(107): PHPUnit\TextUI\Command::main()
> #1 {main}
>   thrown in /usr/share/php/PHPUnit/TextUI/Command.php on line 101
> make[1]: *** [debian/rules:12: override_dh_auto_test] Error 255


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/php8.4-beta/2/php-sabre-uri/php-sabre-uri_1.1.0-1+rebuild1726681138_amd64-2024-09-18T17:38:59Z.build



More information about the pkg-php-pear mailing list