[pkg-php-pear] Bug#1070597: php-sabredav: FTBFS with phpunit 11: There were 10 PHPUnit errors

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


Source: php-sabredav
Version: 1.8.12-10
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-sabredav 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 10 PHPUnit errors:
> 
> 1) Sabre\CalDAV\CalendarQueryValidatorTest::testValid
> The data provider specified for Sabre\CalDAV\CalendarQueryValidatorTest::testValid is invalid
> Data Provider method Sabre\CalDAV\CalendarQueryValidatorTest::provider() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/CalDAV/CalendarQueryValidatorTest.php:12
> 
> 2) Sabre\CalDAV\Notifications\Notification\InviteReplyTest::testSerializers
> The data provider specified for Sabre\CalDAV\Notifications\Notification\InviteReplyTest::testSerializers is invalid
> Data Provider method Sabre\CalDAV\Notifications\Notification\InviteReplyTest::dataProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/CalDAV/Notifications/Notification/InviteReplyTest.php:13
> 
> 3) Sabre\CalDAV\Notifications\Notification\InviteTest::testSerializers
> The data provider specified for Sabre\CalDAV\Notifications\Notification\InviteTest::testSerializers is invalid
> Data Provider method Sabre\CalDAV\Notifications\Notification\InviteTest::dataProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/CalDAV/Notifications/Notification/InviteTest.php:13
> 
> 4) Sabre\CalDAV\Notifications\Notification\SystemStatusTest::testSerializers
> The data provider specified for Sabre\CalDAV\Notifications\Notification\SystemStatusTest::testSerializers is invalid
> Data Provider method Sabre\CalDAV\Notifications\Notification\SystemStatusTest::dataProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/CalDAV/Notifications/Notification/SystemStatusTest.php:13
> 
> 5) Sabre\CalDAV\Property\ScheduleCalendarTranspTest::testSerialize
> The data provider specified for Sabre\CalDAV\Property\ScheduleCalendarTranspTest::testSerialize is invalid
> Data Provider method Sabre\CalDAV\Property\ScheduleCalendarTranspTest::values() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/CalDAV/Property/ScheduleCalendarTranspTest.php:37
> 
> 6) Sabre\CalDAV\Property\ScheduleCalendarTranspTest::testUnserializer
> The data provider specified for Sabre\CalDAV\Property\ScheduleCalendarTranspTest::testUnserializer is invalid
> Data Provider method Sabre\CalDAV\Property\ScheduleCalendarTranspTest::values() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/CalDAV/Property/ScheduleCalendarTranspTest.php:66
> 
> 7) Sabre\CardDAV\ValidateFilterTest::testFilter
> The data provider specified for Sabre\CardDAV\ValidateFilterTest::testFilter is invalid
> Data Provider method Sabre\CardDAV\ValidateFilterTest::data() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/CardDAV/ValidateFilterTest.php:12
> 
> 8) Sabre\DAV\ClientTest::testSpecificHTTPErrors
> The data provider specified for Sabre\DAV\ClientTest::testSpecificHTTPErrors is invalid
> Data Provider method Sabre\DAV\ClientTest::supportedHTTPCodes() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/DAV/ClientTest.php:491
> 
> 9) Sabre\DAV\PartialUpdate\SpecificationTest::testUpdateRange
> The data provider specified for Sabre\DAV\PartialUpdate\SpecificationTest::testUpdateRange is invalid
> Data Provider method Sabre\DAV\PartialUpdate\SpecificationTest::data() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/DAV/PartialUpdate/SpecificationTest.php:43
> 
> 10) Sabre\DAV\StringUtilTest::testTextMatch
> The data provider specified for Sabre\DAV\StringUtilTest::testTextMatch is invalid
> Data Provider method Sabre\DAV\StringUtilTest::dataset() is not static
> 
> /<<PKGBUILDDIR>>/tests/Sabre/DAV/StringUtilTest.php:10
> 
> --
> 
> There were 15 PHPUnit test runner warnings:
> 
> 1) Class Sabre\CalDAV\Backend\AbstractPDOTest declared in /<<PKGBUILDDIR>>/tests/Sabre/CalDAV/Backend/AbstractPDOTest.php is abstract
> 
> 2) No tests found in class "Sabre\CalDAV\CalendarQueryValidatorTest".
> 
> 3) No tests found in class "Sabre\CalDAV\Notifications\Notification\SystemStatusTest".
> 
> 4) Class Sabre\CardDAV\AbstractPluginTest declared in /<<PKGBUILDDIR>>/tests/Sabre/CardDAV/AbstractPluginTest.php is abstract
> 
> 5) Class Sabre\CardDAV\Backend\AbstractPDOTest declared in /<<PKGBUILDDIR>>/tests/Sabre/CardDAV/Backend/AbstractPDOTest.php is abstract
> 
> 6) Class SupportedAddressDataTest cannot be found in /<<PKGBUILDDIR>>/tests/Sabre/CardDAV/Property/SupportedAddressDataTest.php
> 
> 7) Class SogoStripContentTypeTest cannot be found in /<<PKGBUILDDIR>>/tests/Sabre/CardDAV/SogoStripContentTypeTest.php
> 
> 8) No tests found in class "Sabre\CardDAV\ValidateFilterTest".
> 
> 9) Class Sabre\DAV\Auth\Backend\AbstractPDOTest declared in /<<PKGBUILDDIR>>/tests/Sabre/DAV/Auth/Backend/AbstractPDOTest.php is abstract
> 
> 10) Class Sabre\DAV\Locks\Backend\AbstractTest declared in /<<PKGBUILDDIR>>/tests/Sabre/DAV/Locks/Backend/AbstractTest.php is abstract
> 
> 11) No tests found in class "Sabre\DAV\PartialUpdate\SpecificationTest".
> 
> 12) Class ServerPreconditionTest cannot be found in /<<PKGBUILDDIR>>/tests/Sabre/DAV/ServerPreconditionTest.php
> 
> 13) Class NeedPrivilegesExceptionTest cannot be found in /<<PKGBUILDDIR>>/tests/Sabre/DAVACL/Exception/NeedPrivilegesExceptionTest.php
> 
> 14) Class Sabre\DAVACL\PrincipalBackend\AbstractPDOTest declared in /<<PKGBUILDDIR>>/tests/Sabre/DAVACL/PrincipalBackend/AbstractPDOTest.php is abstract
> 
> 15) Class Sabre\DAVServerTest declared in /<<PKGBUILDDIR>>/tests/Sabre/DAVServerTest.php is abstract
> 
> --
> 
> There were 239 PHPUnit test runner deprecations:
> 
...
> 
> ERRORS!
> Tests: 986, Assertions: 1954, Errors: 10, Warnings: 15, Deprecations: 285, Skipped: 54.
> make[1]: *** [debian/rules:20: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-sabredav/php-sabredav_1.8.12-10+rebuild1714376772_amd64-2024-04-29T07:46:12Z.build



More information about the pkg-php-pear mailing list