[pkg-php-pear] Bug#1070594: php-sabre-uri: FTBFS with phpunit 11: Class "PHPUnit_Framework_TestCase" not found

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:28:20 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: phpunit11

Hi,

phpunit 11 is out and is now available in experimental. During a test rebuild,
php-sabre-uri 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 --configuration tests/phpunit.xml.dist --bootstrap lib/autoload.php
> 
> 
> An error occurred inside PHPUnit.
> 
> Message:  Class "PHPUnit_Framework_TestCase" not found
> Location: /<<PKGBUILDDIR>>/tests/BuildTest.php:5
> 
> #0 /usr/share/php/PHPUnit/Runner/TestSuiteLoader.php(114): require_once()
> #1 /usr/share/php/PHPUnit/Runner/TestSuiteLoader.php(49): PHPUnit\Runner\TestSuiteLoader->loadSuiteClassFile()
> #2 /usr/share/php/PHPUnit/Framework/TestSuite.php(250): PHPUnit\Runner\TestSuiteLoader->load()
> #3 /usr/share/php/PHPUnit/TextUI/Configuration/Xml/TestSuiteMapper.php(103): PHPUnit\Framework\TestSuite->addTestFile()
> #4 /usr/share/php/PHPUnit/TextUI/Configuration/TestSuiteBuilder.php(72): PHPUnit\TextUI\XmlConfiguration\TestSuiteMapper->map()
> #5 /usr/share/php/PHPUnit/TextUI/Application.php(351): PHPUnit\TextUI\Configuration\TestSuiteBuilder->build()
> #6 /usr/share/php/PHPUnit/TextUI/Application.php(116): PHPUnit\TextUI\Application->buildTestSuite()
> #7 /usr/bin/phpunit(104): PHPUnit\TextUI\Application->run()
> #8 {main}
> 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/phpunit11/0/php-sabre-uri/php-sabre-uri_1.1.0-1+rebuild1714376883_amd64-2024-04-29T07:48:04Z.build



More information about the pkg-php-pear mailing list