[pkg-php-pear] Bug#1070595: php-sabre-vobject: FTBFS with phpunit 11: There were 7 PHPUnit errors

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


Source: php-sabre-vobject
Version: 2.1.7-6.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-vobject 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 7 PHPUnit errors:
> 
> 1) Sabre\VObject\Component\VAlarmTest::testInTimeRange
> The data provider specified for Sabre\VObject\Component\VAlarmTest::testInTimeRange is invalid
> Data Provider method Sabre\VObject\Component\VAlarmTest::timeRangeTestData() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/Component/VAlarmTest.php:14
> 
> 2) Sabre\VObject\Component\VCalendarTest::testExpand
> The data provider specified for Sabre\VObject\Component\VCalendarTest::testExpand is invalid
> Data Provider method Sabre\VObject\Component\VCalendarTest::expandData() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/Component/VCalendarTest.php:12
> 
> 3) Sabre\VObject\Component\VCardTest::testValidate
> The data provider specified for Sabre\VObject\Component\VCardTest::testValidate is invalid
> Data Provider method Sabre\VObject\Component\VCardTest::validateData() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/Component/VCardTest.php:12
> 
> 4) Sabre\VObject\Component\VEventTest::testInTimeRange
> The data provider specified for Sabre\VObject\Component\VEventTest::testInTimeRange is invalid
> Data Provider method Sabre\VObject\Component\VEventTest::timeRangeTestData() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/Component/VEventTest.php:12
> 
> 5) Sabre\VObject\Component\VJournalTest::testInTimeRange
> The data provider specified for Sabre\VObject\Component\VJournalTest::testInTimeRange is invalid
> Data Provider method Sabre\VObject\Component\VJournalTest::timeRangeTestData() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/Component/VJournalTest.php:12
> 
> 6) Sabre\VObject\Component\VTodoTest::testInTimeRange
> The data provider specified for Sabre\VObject\Component\VTodoTest::testInTimeRange is invalid
> Data Provider method Sabre\VObject\Component\VTodoTest::timeRangeTestData() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/Component/VTodoTest.php:12
> 
> 7) Sabre\VObject\TimezoneUtilTest::testCorrectTZ
> The data provider specified for Sabre\VObject\TimezoneUtilTest::testCorrectTZ is invalid
> Data Provider method Sabre\VObject\TimezoneUtilTest::getMapping() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/TimeZoneUtilTest.php:10
> 
> --
> 
> There were 6 PHPUnit test runner warnings:
> 
> 1) No tests found in class "Sabre\VObject\Component\VCardTest".
> 
> 2) No tests found in class "Sabre\VObject\Component\VEventTest".
> 
> 3) No tests found in class "Sabre\VObject\Component\VJournalTest".
> 
> 4) No tests found in class "Sabre\VObject\Component\VTodoTest".
> 
> 5) Class ICalendarTest cannot be found in /<<PKGBUILDDIR>>/tests/Sabre/VObject/Splitter/ICalendarTest.php
> 
> 6) Class VCardTest cannot be found in /<<PKGBUILDDIR>>/tests/Sabre/VObject/Splitter/VCardTest.php
> 
> --
> 
> There were 39 PHPUnit test runner deprecations:
> 
...
> --
> 
> There was 1 error:
> 
> 1) Sabre\VObject\RecurrenceIteratorTest::testComplexExclusions
> Exception: DateTimeZone::__construct(): Unknown or bad timezone (Canada/Eastern)
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/RecurrenceIteratorTest.php:1200
> 
> --
> 
> There was 1 failure:
> 
> 1) Sabre\VObject\Property\DateTimeTest::testGetDateTimeBadTimeZone
> Failed asserting that two strings are equal.
> --- Expected
> +++ Actual
> @@ @@
> -'Canada/Eastern'
> +'UTC'
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/Property/DateTimeTest.php:233
> 
> --
> 
> There were 2 risky tests:
> 
> 1) Sabre\VObject\PropertyTest::testParameterNotExists
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/PropertyTest.php:46
> 
> 2) Sabre\VObject\RecurrenceIteratorFifthTuesdayProblemTest::testGetDTEnd
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/tests/Sabre/VObject/RecurrenceIteratorFifthTuesdayProblemTest.php:7
> 
> ERRORS!
> Tests: 200, Assertions: 499, Errors: 8, Failures: 1, Warnings: 6, Deprecations: 65, Notices: 1, Risky: 2.
> make[1]: *** [debian/rules:13: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-sabre-vobject/php-sabre-vobject_2.1.7-6.1+rebuild1714376910_amd64-2024-04-29T07:48:31Z.build



More information about the pkg-php-pear mailing list