[pkg-php-pear] Bug#1039837: php-symfony-polyfill: FTBFS with phpunit 10: make[1]: *** [debian/rules:53: override_dh_auto_test] Error 2

Athos Ribeiro athoscribeiro at gmail.com
Wed Jun 28 22:25:59 BST 2023


Source: php-symfony-polyfill
Version: 1.27.0-2
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-symfony-polyfill 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):
> There were 5 PHPUnit test runner warnings:
> 
> 1) Class Symfony\Polyfill\Tests\Intl\Icu\AbstractCollatorTest declared in /<<PKGBUILDDIR>>/tests/Intl/Icu/AbstractCollatorTest.php is abstract
> 
> 2) Class Symfony\Polyfill\Tests\Intl\Icu\AbstractIcuTest declared in /<<PKGBUILDDIR>>/tests/Intl/Icu/AbstractIcuTest.php is abstract
> 
> 3) Class Symfony\Polyfill\Tests\Intl\Icu\AbstractIntlDateFormatterTest declared in /<<PKGBUILDDIR>>/tests/Intl/Icu/AbstractIntlDateFormatterTest.php is abstract
> 
> 4) Class Symfony\Polyfill\Tests\Intl\Icu\AbstractLocaleTest declared in /<<PKGBUILDDIR>>/tests/Intl/Icu/AbstractLocaleTest.php is abstract
> 
> 5) Class Symfony\Polyfill\Tests\Intl\Icu\AbstractNumberFormatterTest declared in /<<PKGBUILDDIR>>/tests/Intl/Icu/AbstractNumberFormatterTest.php is abstract
> 
> --
> 
> There was 1 PHPUnit test runner deprecation:
> 
> 1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!
> 
> --
> 
> There was 1 error:
> 
> 1) Symfony\Polyfill\Tests\Iconv\IconvTest::testIconvMimeDecodeIllegal
> Error: Call to undefined method Symfony\Polyfill\Tests\Iconv\IconvTest::expectNotice()
> 
> /<<PKGBUILDDIR>>/tests/Iconv/IconvTest.php:137
> 
> --
> 
> There were 3 failures:
> 
> 1) Symfony\Polyfill\Tests\Php83\Php83Test::testInvalidOptionsProvided with data set #0
> Failed asserting that exception of type "Error" matches expected exception "ValueError". Message was: "Call to undefined method Symfony\Polyfill\Tests\Php83\Php83Test::expectErrorMessage()" at
> /<<PKGBUILDDIR>>/tests/Php83/Php83Test.php:66
> .
> 
> 2) Symfony\Polyfill\Tests\Php83\Php83Test::testInvalidOptionsProvided with data set #1
> Failed asserting that exception of type "Error" matches expected exception "ValueError". Message was: "Call to undefined method Symfony\Polyfill\Tests\Php83\Php83Test::expectErrorMessage()" at
> /<<PKGBUILDDIR>>/tests/Php83/Php83Test.php:66
> .
> 
> 3) Symfony\Polyfill\Tests\Php83\Php83Test::testInvalidOptionsProvided with data set #2
> Failed asserting that exception of type "Error" matches expected exception "ValueError". Message was: "Call to undefined method Symfony\Polyfill\Tests\Php83\Php83Test::expectErrorMessage()" at
> /<<PKGBUILDDIR>>/tests/Php83/Php83Test.php:66
> .
> 
> --
> 
> 145 tests triggered 145 PHPUnit deprecations:
> 
> 1) Symfony\Polyfill\Tests\Ctype\CtypeTest::testValidCtypeAlnum
> Data Provider method Symfony\Polyfill\Tests\Ctype\CtypeTest::provideValidAlnums() is not static
> 
> /<<PKGBUILDDIR>>/tests/Ctype/CtypeTest.php:24
> 
> 2) Symfony\Polyfill\Tests\Ctype\CtypeTest::testInvalidCtypeAlnum
> Data Provider method Symfony\Polyfill\Tests\Ctype\CtypeTest::provideInvalidAlnum() is not static
> 
> /<<PKGBUILDDIR>>/tests/Ctype/CtypeTest.php:47
> 
> 3) Symfony\Polyfill\Tests\Ctype\CtypeTest::testValidCtypeAlpha
> Data Provider method Symfony\Polyfill\Tests\Ctype\CtypeTest::provideValidAlphas() is not static
> 
> /<<PKGBUILDDIR>>/tests/Ctype/CtypeTest.php:79
> 
...
> 
> --
> 
> There was 1 risky test:
> 
> 1) Symfony\Polyfill\Tests\Iconv\IconvTest::testIconvMimeDecodeIllegal
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/tests/Iconv/IconvTest.php:134
> 
> ERRORS!
> Tests: 20611, Assertions: 403536, Errors: 1, Failures: 3, Warnings: 5, Deprecations: 320, Skipped: 87, Risky: 1.
> make[1]: *** [debian/rules:53: 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-symfony-polyfill/

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