Source: composer
Version: 2.5.8-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, composer 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):
> 
> 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 20 errors:
> 
> 1) Composer\Test\ApplicationTest::testDevWarning
> Error: Undefined constant "STDIN"
> 
> /usr/share/php/Symfony/Component/Console/Helper/QuestionHelper.php:114
> /usr/share/php/Symfony/Component/Console/Helper/QuestionHelper.php:72
> /usr/share/php/Symfony/Component/Console/Helper/QuestionHelper.php:486
> /usr/share/php/Symfony/Component/Console/Helper/QuestionHelper.php:75
> /<<PKGBUILDDIR>>/src/Composer/IO/ConsoleIO.php:269
> /<<PKGBUILDDIR>>/src/Composer/Console/Application.php:333
> /<<PKGBUILDDIR>>/tests/Composer/Test/ApplicationTest.php:49
> 
> 2) 
> Composer\Test\Autoload\AutoloadGeneratorTest::testPreAndPostEventsAreDispatchedDuringAutoloadDump
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php:1331
> 
> 3) 
> Composer\Test\Downloader\DownloadManagerTest::testFullPackageDownloadFailover
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Downloader/DownloadManagerTest.php:261
> 
> 4) 
> Composer\Test\Downloader\FileDownloaderTest::testDowngradeShowsAppropriateMessage
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Downloader/FileDownloaderTest.php:381
> 
> 5) 
> Composer\Test\Downloader\GitDownloaderTest::testDowngradeShowsAppropriateMessage
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Downloader/GitDownloaderTest.php:553
> 
> 6) 
> Composer\Test\Downloader\GitDownloaderTest::testNotUsingDowngradingWithReferences
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Downloader/GitDownloaderTest.php:597
> 
> 7) 
> Composer\Test\EventDispatcher\EventDispatcherTest::testDispatcherOutputsErrorOnFailedCommand
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/EventDispatcher/EventDispatcherTest.php:549
> 
> 8) Composer\Test\IO\ConsoleIOTest::testOverwrite
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/IO/ConsoleIOTest.php:114
> 
> 9) Composer\Test\Installer\SuggestedPackagesReporterTest::testOutput
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Installer/SuggestedPackagesReporterTest.php:148
> 
> 10) 
> Composer\Test\Installer\SuggestedPackagesReporterTest::testOutputWithNoSuggestionReason
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Installer/SuggestedPackagesReporterTest.php:166
> 
> 11) 
> Composer\Test\Installer\SuggestedPackagesReporterTest::testOutputIgnoresFormatting
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Installer/SuggestedPackagesReporterTest.php:187
> 
> 12) 
> Composer\Test\Installer\SuggestedPackagesReporterTest::testOutputMultiplePackages
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Installer/SuggestedPackagesReporterTest.php:207
> 
> 13) 
> Composer\Test\Installer\SuggestedPackagesReporterTest::testOutputSkipInstalledPackages
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Installer/SuggestedPackagesReporterTest.php:248
> 
> 14) 
> Composer\Test\Util\BitbucketTest::testRequestAccessTokenWithUsernameAndPassword
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Util/BitbucketTest.php:198
> 
> 15) 
> Composer\Test\Util\BitbucketTest::testRequestAccessTokenWithUsernameAndPasswordWithUnauthorizedResponse
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Util/BitbucketTest.php:249
> 
> 16) Composer\Test\Util\BitbucketTest::testUsernamePasswordAuthenticationFlow
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Util/BitbucketTest.php:306
> 
> 17) 
> Composer\Test\Util\BitbucketTest::testAuthorizeOAuthInteractivelyWithEmptyPassword
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Util/BitbucketTest.php:366
> 
> 18) 
> Composer\Test\Util\BitbucketTest::testAuthorizeOAuthInteractivelyWithRequestAccessTokenFailure
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Util/BitbucketTest.php:384
> 
> 19) Composer\Test\Util\GitHubTest::testUsernamePasswordAuthenticationFlow
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Util/GitHubTest.php:36
> 
> 20) Composer\Test\Util\GitLabTest::testUsernamePasswordAuthenticationFlow
> Error: Call to undefined method 
> PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive()
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Util/GitLabTest.php:42
> 
> --
> 
> There were 104 failures:
> 
> 1) 
> Composer\Test\Command\AuditCommandTest::testSuccessfulResponseCodeWhenNoPackagesAreRequired
> Failed asserting that two strings are equal.
> --- Expected
> +++ Actual
> @@ @@
> -'No packages - skipping audit.'
> +'<warning>Do not run Composer as root/super user! See 
> https://getcomposer.org/root for details</warning>\n
> +Continue as root/super user [yes]? No packages - skipping audit.'
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Command/AuditCommandTest.php:28
> 
> 2) 
> Composer\Test\Command\BumpCommandTest::testBumpFailsOnWriteErrorToComposerFile
> Failed asserting that 0 is identical to 1.
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Command/BumpCommandTest.php:69
> 
> 3) 
> Composer\Test\Command\CheckPlatformReqsCommandTest::testPlatformReqsAreSatisfied
>  with data set "Disables checking of require-dev packages requirements."
> Failed asserting that two strings are identical.
> --- Expected
> +++ Actual
> @@ @@
> -'Checking non-dev platform requirements for packages in the vendor dir
> +'<warning>Do not run Composer as root/super user! See 
> https://getcomposer.org/root for details</warning>
> +Continue as root/super user [yes]? Checking non-dev platform requirements 
> for packages in the vendor dir
>  ext-foobar 2.3.4   success'
> 
> /<<PKGBUILDDIR>>/tests/Composer/Test/Command/CheckPlatformReqsCommandTest.php:50
> 

The full build logs and additional context is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/0/composer/

A phpunit reverse-dependencies rebuild status is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html

-- 
Athos Ribeiro

Reply via email to