[pkg-php-pear] Bug#1070639: shaarli: FTBFS with phpunit 11: There were 11 PHPUnit errors

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


Source: shaarli
Version: 0.13.0+dfsg-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,
shaarli 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 11 PHPUnit errors:
> 
> 1) Shaarli\Front\Controller\Admin\ShaareManageControllerTest\PinBookmarkTest::testPinBookmarkIsStickyNull
> The data provider specified for Shaarli\Front\Controller\Admin\ShaareManageControllerTest\PinBookmarkTest::testPinBookmarkIsStickyNull is invalid
> Data Provider method Shaarli\Front\Controller\Admin\ShaareManageControllerTest\PinBookmarkTest::initialStickyValuesProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaareManageControllerTest/PinBookmarkTest.php:37
> 
> 2) Shaarli\Helper\DailyPageHelperTest::testExtractRequestedType
> The data provider specified for Shaarli\Helper\DailyPageHelperTest::testExtractRequestedType is invalid
> Data Provider method Shaarli\Helper\DailyPageHelperTest::getRequestedTypes() is not static
> 
> /<<PKGBUILDDIR>>/tests/helper/DailyPageHelperTest.php:19
> 
> 3) Shaarli\Helper\DailyPageHelperTest::testExtractRequestedDateTime
> The data provider specified for Shaarli\Helper\DailyPageHelperTest::testExtractRequestedDateTime is invalid
> Data Provider method Shaarli\Helper\DailyPageHelperTest::getRequestedDateTimes() is not static
> 
> /<<PKGBUILDDIR>>/tests/helper/DailyPageHelperTest.php:34
> 
> 4) Shaarli\Helper\DailyPageHelperTest::testGetFormatByType
> The data provider specified for Shaarli\Helper\DailyPageHelperTest::testGetFormatByType is invalid
> Data Provider method Shaarli\Helper\DailyPageHelperTest::getFormatsByType() is not static
> 
> /<<PKGBUILDDIR>>/tests/helper/DailyPageHelperTest.php:57
> 
> 5) Shaarli\Helper\DailyPageHelperTest::testGetStartDatesByType
> The data provider specified for Shaarli\Helper\DailyPageHelperTest::testGetStartDatesByType is invalid
> Data Provider method Shaarli\Helper\DailyPageHelperTest::getStartDatesByType() is not static
> 
> /<<PKGBUILDDIR>>/tests/helper/DailyPageHelperTest.php:75
> 
> 6) Shaarli\Helper\DailyPageHelperTest::testGetEndDatesByType
> The data provider specified for Shaarli\Helper\DailyPageHelperTest::testGetEndDatesByType is invalid
> Data Provider method Shaarli\Helper\DailyPageHelperTest::getEndDatesByType() is not static
> 
> /<<PKGBUILDDIR>>/tests/helper/DailyPageHelperTest.php:96
> 
> 7) Shaarli\Helper\DailyPageHelperTest::testGeDescriptionsByType
> The data provider specified for Shaarli\Helper\DailyPageHelperTest::testGeDescriptionsByType is invalid
> Data Provider method Shaarli\Helper\DailyPageHelperTest::getDescriptionsByType() is not static
> 
> /<<PKGBUILDDIR>>/tests/helper/DailyPageHelperTest.php:117
> 
> 8) Shaarli\Helper\DailyPageHelperTest::testGeDescriptionsByTypeNotIncludeRelative
> The data provider specified for Shaarli\Helper\DailyPageHelperTest::testGeDescriptionsByTypeNotIncludeRelative is invalid
> Data Provider method Shaarli\Helper\DailyPageHelperTest::getDescriptionsByTypeNotIncludeRelative() is not static
> 
> /<<PKGBUILDDIR>>/tests/helper/DailyPageHelperTest.php:130
> 
> 9) Shaarli\Helper\DailyPageHelperTest::testGeRssLengthsByType
> The data provider specified for Shaarli\Helper\DailyPageHelperTest::testGeRssLengthsByType is invalid
> Data Provider method Shaarli\Helper\DailyPageHelperTest::getRssLengthsByType() is not static
> 
> /<<PKGBUILDDIR>>/tests/helper/DailyPageHelperTest.php:151
> 
> 10) Shaarli\Helper\DailyPageHelperTest::testGetCacheDatePeriodByType
> The data provider specified for Shaarli\Helper\DailyPageHelperTest::testGetCacheDatePeriodByType is invalid
> Data Provider method Shaarli\Helper\DailyPageHelperTest::getCacheDatePeriodByType() is not static
> 
> /<<PKGBUILDDIR>>/tests/helper/DailyPageHelperTest.php:169
> 
> 11) Shaarli\Legacy\LegacyControllerTest::testProcess
> The data provider specified for Shaarli\Legacy\LegacyControllerTest::testProcess is invalid
> Data Provider method Shaarli\Legacy\LegacyControllerTest::getProcessProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/legacy/LegacyControllerTest.php:29
> 
> --
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) Class PluginReadItLaterTest cannot be found in /<<PKGBUILDDIR>>/tests/plugins/PluginReadItLaterTest.php
> 
> --
> 
...
> 
> There were 27 errors:
> 
> 1) Shaarli\Front\Controller\Admin\ManageTagControllerTest::testSaveRenameTagValid
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ManageTagControllerTest.php:114
> /usr/bin/phpunit:104
> 
> 2) Shaarli\Front\Controller\Admin\ManageTagControllerTest::testSaveDeleteTagValid
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ManageTagControllerTest.php:167
> /usr/bin/phpunit:104
> 
> 3) Shaarli\Front\Controller\Admin\PluginsControllerTest::testSavePluginParameters
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/PluginsControllerTest.php:153
> /usr/bin/phpunit:104
> 
> 4) Shaarli\Front\Controller\Admin\ShaareManageControllerTest\AddOrDeleteTagTest::testAddTwoTagsOnTwoBookmarks
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaareManageControllerTest/AddOrDeleteTagTest.php:109
> /usr/bin/phpunit:104
> 
> 5) Shaarli\Front\Controller\Admin\ShaareManageControllerTest\AddOrDeleteTagTest::testDeleteTwoTagOnTwoBookmarks
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaareManageControllerTest/AddOrDeleteTagTest.php:215
> /usr/bin/phpunit:104
> 
> 6) Shaarli\Front\Controller\Admin\ShaareManageControllerTest\ChangeVisibilityBookmarkTest::testSetMultipleBookmarksPrivate
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaareManageControllerTest/ChangeVisibilityBookmarkTest.php:200
> /usr/bin/phpunit:104
> 
> 7) Shaarli\Front\Controller\Admin\ShaareManageControllerTest\ChangeVisibilityBookmarkTest::testChangeVisibilityMultipleBookmarksOneNotFound
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaareManageControllerTest/ChangeVisibilityBookmarkTest.php:304
> /usr/bin/phpunit:104
> 
> 8) Shaarli\Front\Controller\Admin\ShaareManageControllerTest\DeleteBookmarkTest::testDeleteMultipleBookmarks
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaareManageControllerTest/DeleteBookmarkTest.php:115
> /usr/bin/phpunit:104
> 
> 9) Shaarli\Front\Controller\Admin\ShaareManageControllerTest\DeleteBookmarkTest::testDeleteMultipleBookmarksOneNotFound
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaareManageControllerTest/DeleteBookmarkTest.php:235
> /usr/bin/phpunit:104
> 
> 10) Shaarli\Front\Controller\Admin\ShaarePublishControllerTest\DisplayCreateFormTest::testDisplayCreateFormWithUrlAndWithMetadataRetrieval
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaarePublishControllerTest/DisplayCreateFormTest.php:83
> /usr/bin/phpunit:104
> 
> 11) Shaarli\Front\Controller\Admin\ShaarePublishControllerTest\DisplayCreateFormTest::testDisplayCreateFormWithUrlAndWithoutMetadata
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaarePublishControllerTest/DisplayCreateFormTest.php:149
> /usr/bin/phpunit:104
> 
> 12) Shaarli\Front\Controller\Admin\ShaarePublishControllerTest\SaveBookmarkTest::testSaveBookmark
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaarePublishControllerTest/SaveBookmarkTest.php:97
> /usr/bin/phpunit:104
> 
> 13) Shaarli\Front\Controller\Admin\ShaarePublishControllerTest\SaveBookmarkTest::testSaveExistingBookmark
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/admin/ShaarePublishControllerTest/SaveBookmarkTest.php:188
> /usr/bin/phpunit:104
> 
> 14) Shaarli\Front\Controller\Visitor\BookmarkListControllerTest::testThumbnailUpdateFromLinkList
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/BookmarkListControllerTest.php:361
> /usr/bin/phpunit:104
> 
> 15) Shaarli\Front\Controller\Visitor\BookmarkListControllerTest::testThumbnailUpdateFromPermalink
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/BookmarkListControllerTest.php:414
> /usr/bin/phpunit:104
> 
> 16) Shaarli\Front\Controller\Visitor\DailyControllerTest::testValidIndexControllerInvokeDefault
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/DailyControllerTest.php:81
> /usr/bin/phpunit:104
> 
> 17) Shaarli\Front\Controller\Visitor\DailyControllerTest::testValidIndexControllerInvokeNoFutureOrPast
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/DailyControllerTest.php:207
> /usr/bin/phpunit:104
> 
> 18) Shaarli\Front\Controller\Visitor\FeedControllerTest::testDefaultRssController
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/FeedControllerTest.php:50
> /usr/bin/phpunit:104
> 
> 19) Shaarli\Front\Controller\Visitor\FeedControllerTest::testDefaultAtomController
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/FeedControllerTest.php:91
> /usr/bin/phpunit:104
> 
> 20) Shaarli\Front\Controller\Visitor\FeedControllerTest::testAtomControllerWithParameters
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/FeedControllerTest.php:133
> /usr/bin/phpunit:104
> 
> 21) Shaarli\Front\Controller\Visitor\PictureWallControllerTest::testValidControllerInvokeDefault
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/PictureWallControllerTest.php:73
> /usr/bin/phpunit:104
> 
> 22) Shaarli\Front\Controller\Visitor\TagCloudControllerTest::testValidCloudControllerInvokeDefault
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/TagCloudControllerTest.php:58
> /usr/bin/phpunit:104
> 
> 23) Shaarli\Front\Controller\Visitor\TagCloudControllerTest::testValidCloudControllerInvokeWithParameters
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/TagCloudControllerTest.php:131
> /usr/bin/phpunit:104
> 
> 24) Shaarli\Front\Controller\Visitor\TagCloudControllerTest::testEmptyCloud
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/TagCloudControllerTest.php:184
> /usr/bin/phpunit:104
> 
> 25) Shaarli\Front\Controller\Visitor\TagCloudControllerTest::testValidListControllerInvokeDefault
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/TagCloudControllerTest.php:238
> /usr/bin/phpunit:104
> 
> 26) Shaarli\Front\Controller\Visitor\TagCloudControllerTest::testValidListControllerInvokeWithParameters
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/TagCloudControllerTest.php:310
> /usr/bin/phpunit:104
> 
> 27) Shaarli\Front\Controller\Visitor\TagCloudControllerTest::testEmptyList
> Error: Call to undefined method PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/front/controller/visitor/TagCloudControllerTest.php:359
> /usr/bin/phpunit:104
> 
> ERRORS!
> Tests: 897, Assertions: 3647, Errors: 38, Warnings: 2, Deprecations: 79, Skipped: 16.
> make[1]: *** [Makefile:76: test] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> 	rm -fr -- /tmp/dh-xdg-rundir-eZqJx1Dh
> dh_auto_test: error: make -j1 test returned exit code 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/shaarli/shaarli_0.13.0+dfsg-3+rebuild1714378963_amd64-2024-04-29T08:22:44Z.build



More information about the pkg-php-pear mailing list