Source: php-nesbot-carbon Version: 2.65.0-1 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: pkg-php-p...@lists.alioth.debian.org Usertags: phpunit
Hi, We will start the phpunit 10 transition in unstable soon. During a test rebuild, php-nesbot-carbon 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): > make[1]: Entering directory '/<<PKGBUILDDIR>>' > phpabtpl \ > --require nesbot/carbon \ > --require doctrine/dbal \ > > debian/autoload.php.test.tpl > Proceeding without a composer.json file.phpab \ > -o tests/autoload.php \ > -t debian/autoload.php.test.tpl \ > --blacklist 'carbon\\cli' \ > --blacklist 'symfony\\component\\translation\\translatorinterface' \ > tests > phpab %development% - Copyright (C) 2009 - 2023 by Arne Blankerts and > Contributors > > Scanning directory tests > > Autoload file tests/autoload.php generated. > > phpunit -v --bootstrap tests/autoload.php --include-path src > PHPUnit 10.2.2 by Sebastian Bergmann and contributors. > > Runtime: PHP 8.2.7 > Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist > > D............................................................ 61 / 5618 ( > 1%) > ............................................................. 122 / 5618 ( > 2%) > ............................................................. 183 / 5618 ( > 3%) > ............................................................. 244 / 5618 ( > 4%) > ............................................................. 305 / 5618 ( > 5%) > ............................................................. 366 / 5618 ( > 6%) > ............................................................. 427 / 5618 ( > 7%) > ............................................................. 488 / 5618 ( > 8%) > ............................................................. 549 / 5618 ( > 9%) > ............................................................. 610 / 5618 ( > 10%) > ............................................................. 671 / 5618 ( > 11%) > ............................................................. 732 / 5618 ( > 13%) > ............................................................. 793 / 5618 ( > 14%) > ............................................................. 854 / 5618 ( > 15%) > ............................................................. 915 / 5618 ( > 16%) > ............................................................. 976 / 5618 ( > 17%) > ............................................................. 1037 / 5618 ( > 18%) > ............................................................. 1098 / 5618 ( > 19%) > ............................................................. 1159 / 5618 ( > 20%) > ............................................................. 1220 / 5618 ( > 21%) > ............................................................. 1281 / 5618 ( > 22%) > ............................................................. 1342 / 5618 ( > 23%) > .............................SF.............................. 1403 / 5618 ( > 24%) > ............................................................. 1464 / 5618 ( > 26%) > ............................................................. 1525 / 5618 ( > 27%) > ............................................................. 1586 / 5618 ( > 28%) > ............................................................. 1647 / 5618 ( > 29%) > ............................................................. 1708 / 5618 ( > 30%) > ............................................................. 1769 / 5618 ( > 31%) > ............................................................. 1830 / 5618 ( > 32%) > ............................................................. 1891 / 5618 ( > 33%) > ............................................................. 1952 / 5618 ( > 34%) > ............................................................. 2013 / 5618 ( > 35%) > ...................................E......................... 2074 / 5618 ( > 36%) > .....SS...................................................... 2135 / 5618 ( > 38%) > ............................................................. 2196 / 5618 ( > 39%) > ............................................................. 2257 / 5618 ( > 40%) > ............................................................. 2318 / 5618 ( > 41%) > .............................N............................... 2379 / 5618 ( > 42%) > ............................................................. 2440 / 5618 ( > 43%) > ............................................................. 2501 / 5618 ( > 44%) > ............................................................. 2562 / 5618 ( > 45%) > ............................................................. 2623 / 5618 ( > 46%) > ............................................................. 2684 / 5618 ( > 47%) > ............................................................. 2745 / 5618 ( > 48%) > ............................................................. 2806 / 5618 ( > 49%) > ............................................................. 2867 / 5618 ( > 51%) > ............................................................. 2928 / 5618 ( > 52%) > ............................................................. 2989 / 5618 ( > 53%) > .................SF.......................................... 3050 / 5618 ( > 54%) > ............................................................. 3111 / 5618 ( > 55%) > ............................................................. 3172 / 5618 ( > 56%) > ............................................................. 3233 / 5618 ( > 57%) > ............................................................. 3294 / 5618 ( > 58%) > ............................................................. 3355 / 5618 ( > 59%) > ............................................................. 3416 / 5618 ( > 60%) > ............................................................. 3477 / 5618 ( > 61%) > ............................................................. 3538 / 5618 ( > 62%) > ............................................................. 3599 / 5618 ( > 64%) > ............................................................. 3660 / 5618 ( > 65%) > ......E........................SS............................ 3721 / 5618 ( > 66%) > ............................................................. 3782 / 5618 ( > 67%) > ............................................................. 3843 / 5618 ( > 68%) > ............................................................. 3904 / 5618 ( > 69%) > ............................................................. 3965 / 5618 ( > 70%) > ............................................................. 4026 / 5618 ( > 71%) > ............................................................. 4087 / 5618 ( > 72%) > ............................................................. 4148 / 5618 ( > 73%) > ............................................................. 4209 / 5618 ( > 74%) > ............................................................. 4270 / 5618 ( > 76%) > ............................................................. 4331 / 5618 ( > 77%) > ............................................................. 4392 / 5618 ( > 78%) > ............................................................. 4453 / 5618 ( > 79%) > ............................................................. 4514 / 5618 ( > 80%) > ............................................................. 4575 / 5618 ( > 81%) > ............................................................. 4636 / 5618 ( > 82%) > ............................................................. 4697 / 5618 ( > 83%) > ............................................................. 4758 / 5618 ( > 84%) > ............................................................. 4819 / 5618 ( > 85%) > ............................................................. 4880 / 5618 ( > 86%) > ............................................................. 4941 / 5618 ( > 87%) > ............................................................. 5002 / 5618 ( > 89%) > ............................................................. 5063 / 5618 ( > 90%) > ............................................................. 5124 / 5618 ( > 91%) > ............................................................. 5185 / 5618 ( > 92%) > ............................................................. 5246 / 5618 ( > 93%) > ............................................................. 5307 / 5618 ( > 94%) > ............................................................. 5368 / 5618 ( > 95%) > ............................................................. 5429 / 5618 ( > 96%) > ............................................................. 5490 / 5618 ( > 97%) > ............................................................. 5551 / 5618 ( > 98%) > ............................................................. 5612 / 5618 ( > 99%) > ...... 5618 / 5618 > (100%) > > Time: 00:23.325, Memory: 180.00 MB > > There was 1 PHPUnit test runner deprecation: > > 1) Your XML configuration validates against a deprecated schema. Migrate your > XML configuration using "--migrate-configuration"! > > -- > > There were 2 errors: > > 1) Tests\Carbon\ObjectsTest::testToObject > Error: Call to undefined method > Tests\Carbon\ObjectsTest::assertObjectHasAttribute() > > /<<PKGBUILDDIR>>/tests/Carbon/ObjectsTest.php:31 > > 2) Tests\CarbonImmutable\ObjectsTest::testToObject > Error: Call to undefined method > Tests\CarbonImmutable\ObjectsTest::assertObjectHasAttribute() > > /<<PKGBUILDDIR>>/tests/CarbonImmutable/ObjectsTest.php:31 > > -- > > 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:107 > > 2) Tests\CarbonImmutable\GenericMacroTest::testGenericMacro > Failed asserting that null is identical to 'Method > Carbon\CarbonImmutable::fooBar does not exist.'. > > /<<PKGBUILDDIR>>/tests/CarbonImmutable/GenericMacroTest.php:107 > > -- > > 4 tests triggered 4 PHPUnit deprecations: > > 1) Tests\Carbon\WeekTest::testGetDaysFromStartOfWeek > Data Provider method > Tests\Carbon\WeekTest::getDaysFromStartOfWeekDataProvider() is not static > > /<<PKGBUILDDIR>>/tests/Carbon/WeekTest.php:5444 > > 2) Tests\Carbon\WeekTest::testGetDaysFromStartOfWeekExplicit > Data Provider method > Tests\Carbon\WeekTest::getDaysFromStartOfWeekDataProviderExplicit() is not > static > > /<<PKGBUILDDIR>>/tests/Carbon/WeekTest.php:5479 > > 3) Tests\CarbonImmutable\WeekTest::testGetDaysFromStartOfWeek > Data Provider method > Tests\CarbonImmutable\WeekTest::getDaysFromStartOfWeekDataProvider() is not > static > > /<<PKGBUILDDIR>>/tests/CarbonImmutable/WeekTest.php:5438 > > 4) Tests\CarbonImmutable\WeekTest::testGetDaysFromStartOfWeekExplicit > Data Provider method > Tests\CarbonImmutable\WeekTest::getDaysFromStartOfWeekDataProviderExplicit() > is not static > > /<<PKGBUILDDIR>>/tests/CarbonImmutable/WeekTest.php:5473 > > ERRORS! > Tests: 5618, Assertions: 191195, Errors: 2, Failures: 2, Warnings: 2, > Deprecations: 5, Notices: 1, Skipped: 6. > make[1]: *** [debian/rules:22: 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-nesbot-carbon/ A phpunit reverse-dependencies rebuild status is available at http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html -- Athos Ribeiro