[pkg-php-pear] Bug#1039796: php-mikey179-vfsstream: FTBFS with phpunit 10: make[1]: *** [debian/rules:13: override_dh_auto_test] Error 2

Athos Ribeiro athoscribeiro at gmail.com
Wed Jun 28 22:10:18 BST 2023


Source: php-mikey179-vfsstream
Version: 1.6.11-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: phpunit

Hi,

We will start the phpunit 10 transition in unstable soon. During a test
rebuild, php-mikey179-vfsstream 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 were 4 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) Class org\bovigo\vfs\vfsStreamWrapperBaseTestCase declared in /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperBaseTestCase.php is abstract
> 
> 3) Class vfsStreamWrapperDirTestCase cannot be found in /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php
> 
> 4) Class vfsStreamWrapperStreamSelectTestCase cannot be found in /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperStreamSelectTestCase.php
> 
> --
> 
> There were 25 errors:
> 
> 1) org\bovigo\vfs\vfsStreamContainerIteratorTestCase::iteration with data set #0
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
> 
> /<<PKGBUILDDIR>>/src/test/bootstrap.php:58
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamContainerIteratorTestCase.php:41
> 
> 2) org\bovigo\vfs\vfsStreamContainerIteratorTestCase::iteration with data set #1
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
> 
> /<<PKGBUILDDIR>>/src/test/bootstrap.php:58
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamContainerIteratorTestCase.php:41
> 
> 3) 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
> 
> 4) 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
> 
> 5) 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
> 
> 6) 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
> 
> 7) 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
> 
> 8) 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
> 
> 9) 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
> 
> 10) 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
> 
> 11) 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
> 
> 12) 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
> 
> 13) 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
> 
> 14) 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
> 
> 15) 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
> 
> 16) 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
> 
> 17) 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
> 
> 18) 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
> 
> 19) 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
> 
> 20) 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
> 
> 21) 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
> 
> 22) 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
> 
> 23) 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
> 
> 24) 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
> 
> 25) 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 5 failures:
> 
> 1) org\bovigo\vfs\PermissionsTestCase::touchOnNonWriteableDirectoryTriggersError
> Failed asserting that exception of type "PHPUnit\Framework\Error\Error" is thrown.
> 
> 2) org\bovigo\vfs\vfsStreamExLockTestCase::filePutContentsLockShouldReportError
> Failed asserting that two strings are equal.
> --- Expected
> +++ Actual
> @@ @@
> -'file_put_contents(): Exclusive locks may only be set for regular files'
> +'Class "\PHPUnit\TextUI\ResultPrinter" not found'
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamExLockTestCase.php:40
> 
> 3) org\bovigo\vfs\vfsStreamWrapperTestCase::renameOnSourceFileNotFound
> Failed asserting that exception of type "\PHPUnit\Framework\Error\Error" is thrown.
> 
> 4) org\bovigo\vfs\vfsStreamWrapperTestCase::renameOnDestinationDirectoryFileNotFound
> Failed asserting that exception of type "\PHPUnit\Framework\Error\Error" is thrown.
> 
> 5) org\bovigo\vfs\vfsStreamWrapperTestCase::openFileWithoutDirectory
> Failed asserting that exception of type "\PHPUnit\Framework\Error\Error" is thrown.
> 
> --
> 
> 6 tests triggered 6 PHPUnit deprecations:
> 
> 1) org\bovigo\vfs\DirectoryIterationTestCase::directoryIteration
> 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
> 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
> 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
> 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
> 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
> Data Provider method org\bovigo\vfs\vfsStreamContainerIteratorTestCase::provideSwitchWithExpectations() is not static
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamContainerIteratorTestCase.php:91
> 
> --
> 
> There were 19 risky tests:
> 
> 1) org\bovigo\vfs\vfsStreamContainerIteratorTestCase::iteration with data set #0
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamContainerIteratorTestCase.php:91
> 
> 2) org\bovigo\vfs\vfsStreamContainerIteratorTestCase::iteration with data set #1
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamContainerIteratorTestCase.php:91
> 
> 3) org\bovigo\vfs\vfsStreamDirectoryTestCase::hasChildrenReturnsTrueIfAtLeastOneChildPresent
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:95
> 
> 4) org\bovigo\vfs\vfsStreamDirectoryTestCase::nonExistingChild
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:135
> 
> 5) org\bovigo\vfs\vfsStreamDirectoryTestCase::childHandling
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:153
> 
> 6) org\bovigo\vfs\vfsStreamDirectoryTestCase::childHandlingWithSubdirectory
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:187
> 
> 7) org\bovigo\vfs\vfsStreamDirectoryTestCase::addChildReplacesChildWithSameName_Bug_5
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:220
> 
> 8) org\bovigo\vfs\vfsStreamDirectoryTestCase::explicitTestForSeparatorWithNestedPaths_Bug_24
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php:252
> 
> 9) org\bovigo\vfs\vfsStreamFileTestCase::withContentAcceptsAnyFileContentInstance
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamFileTestCase.php:314
> 
> 10) org\bovigo\vfs\vfsStreamTestCase::inspectWithContentGivesContentToVisitor
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php:539
> 
> 11) org\bovigo\vfs\vfsStreamTestCase::inspectWithoutContentGivesRootToVisitor
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php:555
> 
> 12) org\bovigo\vfs\vfsStreamTestCase::inspectWithoutContentAndWithoutRootThrowsInvalidArgumentException
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php:571
> 
> 13) org\bovigo\vfs\vfsStreamWrapperAlreadyRegisteredTestCase::registerOverAnotherStreamWrapper
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperAlreadyRegisteredTestCase.php:57
> 
> 14) org\bovigo\vfs\vfsStreamWrapperTestCase::chownDoesNotWorkOnVfsStreamUrls
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:335
> 
> 15) org\bovigo\vfs\vfsStreamWrapperTestCase::chgrpDoesNotWorkOnVfsStreamUrls
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:390
> 
> 16) org\bovigo\vfs\visitor\vfsStreamAbstractVisitorTestCase::visitThrowsInvalidArgumentExceptionOnUnknownContentType
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitorTestCase.php:43
> 
> 17) org\bovigo\vfs\visitor\vfsStreamAbstractVisitorTestCase::visitWithFileCallsVisitFile
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitorTestCase.php:58
> 
> 18) org\bovigo\vfs\visitor\vfsStreamAbstractVisitorTestCase::visitWithBlockCallsVisitFile
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitorTestCase.php:74
> 
> 19) org\bovigo\vfs\visitor\vfsStreamAbstractVisitorTestCase::visitWithDirectoryCallsVisitDirectory
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/src/test/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitorTestCase.php:88
> 
> ERRORS!
> Tests: 367, Assertions: 1185, Errors: 25, Failures: 5, Warnings: 12, Deprecations: 6, Skipped: 5, Risky: 19.
> make[1]: *** [debian/rules:13: override_dh_auto_test] Error 2


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

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

-- 
Athos Ribeiro



More information about the pkg-php-pear mailing list