[pkg-php-pear] Bug#1070577: php-nesbot-carbon: FTBFS with phpunit 11: There were 6 PHPUnit errors

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:26:14 BST 2024


Source: php-nesbot-carbon
Version: 2.69.0-3
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-nesbot-carbon 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):
> There were 6 PHPUnit errors:
> 
> 1) Tests\Carbon\WeekTest::testGetDaysFromStartOfWeek
> The data provider specified for Tests\Carbon\WeekTest::testGetDaysFromStartOfWeek is invalid
> Data Provider method Tests\Carbon\WeekTest::getDaysFromStartOfWeekDataProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/Carbon/WeekTest.php:5444
> 
> 2) Tests\Carbon\WeekTest::testGetDaysFromStartOfWeekExplicit
> The data provider specified for Tests\Carbon\WeekTest::testGetDaysFromStartOfWeekExplicit is invalid
> Data Provider method Tests\Carbon\WeekTest::getDaysFromStartOfWeekDataProviderExplicit() is not static
> 
> /<<PKGBUILDDIR>>/tests/Carbon/WeekTest.php:5479
> 
> 3) Tests\CarbonImmutable\WeekTest::testGetDaysFromStartOfWeek
> The data provider specified for Tests\CarbonImmutable\WeekTest::testGetDaysFromStartOfWeek is invalid
> Data Provider method Tests\CarbonImmutable\WeekTest::getDaysFromStartOfWeekDataProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/CarbonImmutable/WeekTest.php:5438
> 
> 4) Tests\CarbonImmutable\WeekTest::testGetDaysFromStartOfWeekExplicit
> The data provider specified for Tests\CarbonImmutable\WeekTest::testGetDaysFromStartOfWeekExplicit is invalid
> Data Provider method Tests\CarbonImmutable\WeekTest::getDaysFromStartOfWeekDataProviderExplicit() is not static
> 
> /<<PKGBUILDDIR>>/tests/CarbonImmutable/WeekTest.php:5473
> 
> 5) Tests\CarbonPeriod\ToStringTest::testToString
> The data provider specified for Tests\CarbonPeriod\ToStringTest::testToString is invalid
> Data Provider method \Tests\CarbonPeriod\ToStringTest::dataForToString() is not static
> 
> /<<PKGBUILDDIR>>/tests/CarbonPeriod/ToStringTest.php:28
> 
> 6) Tests\CarbonPeriod\ToStringTest::testToIso8601String
> The data provider specified for Tests\CarbonPeriod\ToStringTest::testToIso8601String is invalid
> Data Provider method \Tests\CarbonPeriod\ToStringTest::dataForToIso8601String() is not static
> 
> /<<PKGBUILDDIR>>/tests/CarbonPeriod/ToStringTest.php:98
> 
> --
> 
> There were 1767 PHPUnit test runner deprecations:
...
> 
> --
> 
> There were 2 failures:
> 
> 1) Tests\Carbon\GenericMacroTest::testGenericMacro
> Failed asserting that null is identical to 'Method Carbon\Carbon::fooBar does not exist.'.
> 
> /<<PKGBUILDDIR>>/tests/Carbon/GenericMacroTest.php:110
> 
> 2) Tests\CarbonImmutable\GenericMacroTest::testGenericMacro
> Failed asserting that null is identical to 'Method Carbon\CarbonImmutable::fooBar does not exist.'.
> 
> /<<PKGBUILDDIR>>/tests/CarbonImmutable/GenericMacroTest.php:106
> 
> ERRORS!
> Tests: 5550, Assertions: 191242, Errors: 6, Failures: 2, Warnings: 2, Deprecations: 1768, Notices: 1, Skipped: 8.
> make[1]: *** [debian/rules:21: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/1/php-nesbot-carbon/php-nesbot-carbon_2.69.0-3+rebuild1714781444_amd64-2024-05-04T00:10:45Z.build



More information about the pkg-php-pear mailing list