Source: php-mikey179-vfsstream Version: 1.6.11-1 Severity: normal Justification: FTBFS Tags: trixie sid ftbfs User: pkg-php-p...@lists.alioth.debian.org Usertags: phpunit11
Hi, phpunit 11 is out and is now available in experimental. During a test rebuild, php-mikey179-vfsstream 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): > make[1]: Entering directory '/<<PKGBUILDDIR>>' > phpunit --include-path src/main/php > PHP Warning: Class "PHPUnit\Framework\Error\Warning" not found in > /<<PKGBUILDDIR>>/src/test/bootstrap.php on line 12 > PHP Warning: Class "\PHPUnit\TextUI\ResultPrinter" not found in > /<<PKGBUILDDIR>>/src/test/bootstrap.php on line 34 > PHPUnit 11.1.2 by Sebastian Bergmann and contributors. > > Runtime: PHP 8.2.18 > Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist > > ..............F.........W...................................... 63 / 355 ( > 17%) > .....................................E...EEEEE................. 126 / 355 ( > 35%) > ......E..................................EEE................... 189 / 355 ( > 53%) > ......E...................................S.......SS...S....... 252 / 355 ( > 70%) > ......................WW...........................R..REEEEEEFF 315 / 355 ( > 88%) > ....F.............EE.....SEEEE.......... 355 / 355 > (100%) > > Time: 00:04.142, Memory: 14.00 MB > > There were 6 PHPUnit errors: > > 1) org\bovigo\vfs\DirectoryIterationTestCase::directoryIteration > The data provider specified for > org\bovigo\vfs\DirectoryIterationTestCase::directoryIteration is invalid > Data Provider method > org\bovigo\vfs\DirectoryIterationTestCase::provideSwitchWithExpectations() is > not static > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/DirectoryIterationTestCase.php:58 > > 2) org\bovigo\vfs\DirectoryIterationTestCase::directoryIterationWithDot > The data provider specified for > org\bovigo\vfs\DirectoryIterationTestCase::directoryIterationWithDot is > invalid > Data Provider method > org\bovigo\vfs\DirectoryIterationTestCase::provideSwitchWithExpectations() is > not static > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/DirectoryIterationTestCase.php:86 > > 3) > org\bovigo\vfs\DirectoryIterationTestCase::directoryIterationWithOpenDir_Bug_2 > The data provider specified for > org\bovigo\vfs\DirectoryIterationTestCase::directoryIterationWithOpenDir_Bug_2 > is invalid > Data Provider method > org\bovigo\vfs\DirectoryIterationTestCase::provideSwitchWithExpectations() is > not static > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/DirectoryIterationTestCase.php:118 > > 4) org\bovigo\vfs\DirectoryIterationTestCase::directoryIteration_Bug_4 > The data provider specified for > org\bovigo\vfs\DirectoryIterationTestCase::directoryIteration_Bug_4 is invalid > Data Provider method > org\bovigo\vfs\DirectoryIterationTestCase::provideSwitchWithExpectations() is > not static > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/DirectoryIterationTestCase.php:152 > > 5) > org\bovigo\vfs\DirectoryIterationTestCase::directoryIterationShouldBeIndependent > The data provider specified for > org\bovigo\vfs\DirectoryIterationTestCase::directoryIterationShouldBeIndependent > is invalid > Data Provider method > org\bovigo\vfs\DirectoryIterationTestCase::provideSwitchWithExpectations() is > not static > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/DirectoryIterationTestCase.php:199 > > 6) org\bovigo\vfs\vfsStreamContainerIteratorTestCase::iteration > The data provider specified for > org\bovigo\vfs\vfsStreamContainerIteratorTestCase::iteration is invalid > Data Provider method > org\bovigo\vfs\vfsStreamContainerIteratorTestCase::provideSwitchWithExpectations() > is not static > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamContainerIteratorTestCase.php:91 > > -- > > There were 5 PHPUnit test runner warnings: > > 1) Test results may not be as expected because the XML configuration file did > not pass validation: > > Line 16: > - Element 'phpunit', attribute 'backupStaticAttributes': The attribute > 'backupStaticAttributes' is not allowed. > - Element 'phpunit', attribute 'convertErrorsToExceptions': The attribute > 'convertErrorsToExceptions' is not allowed. > - Element 'phpunit', attribute 'convertNoticesToExceptions': The attribute > 'convertNoticesToExceptions' is not allowed. > - Element 'phpunit', attribute 'convertWarningsToExceptions': The attribute > 'convertWarningsToExceptions' is not allowed. > - Element 'phpunit', attribute 'forceCoversAnnotation': The attribute > 'forceCoversAnnotation' is not allowed. > - Element 'phpunit', attribute 'mapTestClassNameToCoveredClassName': The > attribute 'mapTestClassNameToCoveredClassName' is not allowed. > - Element 'phpunit', attribute 'verbose': The attribute 'verbose' is not > allowed. > > Line 18: > - Element 'testsuite': The attribute 'name' is required but missing. > > Line 24: > - Element 'filter': This element is not expected. > > > 2) No tests found in class > "org\bovigo\vfs\vfsStreamContainerIteratorTestCase". > > 3) Class org\bovigo\vfs\vfsStreamWrapperBaseTestCase declared in > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperBaseTestCase.php > is abstract > > 4) Class vfsStreamWrapperDirTestCase cannot be found in > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php > > 5) Class vfsStreamWrapperStreamSelectTestCase cannot be found in > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperStreamSelectTestCase.php > > -- > > There were 382 PHPUnit test runner deprecations: > ... > > -- > > There were 23 errors: > > 1) > org\bovigo\vfs\vfsStreamDirectoryTestCase::hasChildrenReturnsTrueIfAtLeastOneChildPresent > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:97 > > 2) org\bovigo\vfs\vfsStreamDirectoryTestCase::nonExistingChild > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:137 > > 3) org\bovigo\vfs\vfsStreamDirectoryTestCase::childHandling > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:155 > > 4) org\bovigo\vfs\vfsStreamDirectoryTestCase::childHandlingWithSubdirectory > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:189 > > 5) > org\bovigo\vfs\vfsStreamDirectoryTestCase::addChildReplacesChildWithSameName_Bug_5 > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:222 > > 6) > org\bovigo\vfs\vfsStreamDirectoryTestCase::explicitTestForSeparatorWithNestedPaths_Bug_24 > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:254 > > 7) > org\bovigo\vfs\vfsStreamFileTestCase::withContentAcceptsAnyFileContentInstance > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamFileTestCase.php:316 > > 8) org\bovigo\vfs\vfsStreamTestCase::inspectWithContentGivesContentToVisitor > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php:541 > > 9) org\bovigo\vfs\vfsStreamTestCase::inspectWithoutContentGivesRootToVisitor > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php:558 > > 10) > org\bovigo\vfs\vfsStreamTestCase::inspectWithoutContentAndWithoutRootThrowsInvalidArgumentException > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php:573 > > 11) > org\bovigo\vfs\vfsStreamWrapperAlreadyRegisteredTestCase::registerOverAnotherStreamWrapper > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperAlreadyRegisteredTestCase.php:39 > > 12) org\bovigo\vfs\vfsStreamWrapperTestCase::renameDirectory > Error: Call to undefined method > org\bovigo\vfs\vfsStreamWrapperTestCase::assertFileNotExists() > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:408 > > 13) org\bovigo\vfs\vfsStreamWrapperTestCase::renameDirectoryWithDots > Error: Call to undefined method > org\bovigo\vfs\vfsStreamWrapperTestCase::assertFileNotExists() > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:420 > > 14) org\bovigo\vfs\vfsStreamWrapperTestCase::renameDirectoryWithDotsInTarget > Error: Call to undefined method > org\bovigo\vfs\vfsStreamWrapperTestCase::assertFileNotExists() > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:434 > > 15) > org\bovigo\vfs\vfsStreamWrapperTestCase::renameDirectoryOverwritingExistingFile > Error: Call to undefined method > org\bovigo\vfs\vfsStreamWrapperTestCase::assertFileNotExists() > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:446 > > 16) org\bovigo\vfs\vfsStreamWrapperTestCase::renameFileIntoFile > PHPUnit\Framework\Exception: Class "\PHPUnit\Framework\Error\Error" does not > exist > > Caused by > ReflectionException: Class "\PHPUnit\Framework\Error\Error" does not exist > > 17) org\bovigo\vfs\vfsStreamWrapperTestCase::renameFileToDirectory > Error: Call to undefined method > org\bovigo\vfs\vfsStreamWrapperTestCase::assertFileNotExists() > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:473 > > 18) > org\bovigo\vfs\vfsStreamWrapperUnregisterTestCase::unregisterThirdPartyVfsScheme > PHPUnit\Framework\Exception: PHP Warning: Class > "PHPUnit\Framework\Error\Warning" not found in > /<<PKGBUILDDIR>>/src/test/bootstrap.php on line 12 > Warning: Class "PHPUnit\Framework\Error\Warning" not found in > /<<PKGBUILDDIR>>/src/test/bootstrap.php on line 12 > PHP Warning: Class "\PHPUnit\TextUI\ResultPrinter" not found in > /<<PKGBUILDDIR>>/src/test/bootstrap.php on line 34 > Warning: Class "\PHPUnit\TextUI\ResultPrinter" not found in > /<<PKGBUILDDIR>>/src/test/bootstrap.php on line 34 > > 19) > org\bovigo\vfs\vfsStreamWrapperUnregisterTestCase::unregisterWhenNotInRegisteredState > PHPUnit\Framework\Exception: PHP Warning: Class > "PHPUnit\Framework\Error\Warning" not found in > /<<PKGBUILDDIR>>/src/test/bootstrap.php on line 12 > Warning: Class "PHPUnit\Framework\Error\Warning" not found in > /<<PKGBUILDDIR>>/src/test/bootstrap.php on line 12 > PHP Warning: Class "\PHPUnit\TextUI\ResultPrinter" not found in > /<<PKGBUILDDIR>>/src/test/bootstrap.php on line 34 > Warning: Class "\PHPUnit\TextUI\ResultPrinter" not found in > /<<PKGBUILDDIR>>/src/test/bootstrap.php on line 34 > > 20) > org\bovigo\vfs\visitor\vfsStreamAbstractVisitorTestCase::visitThrowsInvalidArgumentExceptionOnUnknownContentType > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitorTestCase.php:35 > > 21) > org\bovigo\vfs\visitor\vfsStreamAbstractVisitorTestCase::visitWithFileCallsVisitFile > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitorTestCase.php:35 > > 22) > org\bovigo\vfs\visitor\vfsStreamAbstractVisitorTestCase::visitWithBlockCallsVisitFile > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitorTestCase.php:35 > > 23) > org\bovigo\vfs\visitor\vfsStreamAbstractVisitorTestCase::visitWithDirectoryCallsVisitDirectory > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/src/test/bootstrap.php:58 > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitorTestCase.php:35 > > -- > > There were 4 failures: > > 1) > org\bovigo\vfs\PermissionsTestCase::touchOnNonWriteableDirectoryTriggersError > Failed asserting that exception of type "PHPUnit\Framework\Error\Error" is > thrown. > > 2) org\bovigo\vfs\vfsStreamWrapperTestCase::renameOnSourceFileNotFound > Failed asserting that exception of type "\PHPUnit\Framework\Error\Error" is > thrown. > > 3) > org\bovigo\vfs\vfsStreamWrapperTestCase::renameOnDestinationDirectoryFileNotFound > Failed asserting that exception of type "\PHPUnit\Framework\Error\Error" is > thrown. > > 4) org\bovigo\vfs\vfsStreamWrapperTestCase::openFileWithoutDirectory > Failed asserting that exception of type "\PHPUnit\Framework\Error\Error" is > thrown. > > -- > > There were 2 risky tests: > > 1) org\bovigo\vfs\vfsStreamWrapperTestCase::chownDoesNotWorkOnVfsStreamUrls > This test did not perform any assertions > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:335 > > 2) org\bovigo\vfs\vfsStreamWrapperTestCase::chgrpDoesNotWorkOnVfsStreamUrls > This test did not perform any assertions > > /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:390 > > ERRORS! > Tests: 355, Assertions: 1125, Errors: 29, Failures: 4, Warnings: 13, > Deprecations: 382, Skipped: 5, 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/1/php-mikey179-vfsstream/php-mikey179-vfsstream_1.6.11-1+rebuild1714781091_amd64-2024-05-04T00:04:51Z.build