Source: php-mock
Version: 2.3.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: phpunit

Hi,

We will start the phpunit 10 transition in unstable soon. During a test
rebuild, php-mock 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):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit       --do-not-cache-result \
>       --bootstrap vendor/autoload.php \
>       tests
> PHPUnit 10.2.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.7
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
> 
> D..............E...............................................  63 / 164 ( 
> 38%)
> ............................................................... 126 / 164 ( 
> 76%)
> ......................................                          164 / 164 
> (100%)
> 
> Time: 00:00.129, Memory: 10.00 MB
> 
> There was 1 PHPUnit test runner warning:
> 
> 1) Class phpmock\AbstractMockTest declared in 
> /<<PKGBUILDDIR>>/tests/AbstractMockTest.php is abstract
> 
> --
> 
> There was 1 error:
> 
> 1) phpmocktest\MockNamespaceTest::testDefiningNamespaces
> PHPUnit\Framework\Exception: PHP Fatal error:  Trait "phpmock\TestCaseTrait" 
> not found in /<<PKGBUILDDIR>>/tests/MockNamespaceTest.php on line 20
> Fatal error: Trait "phpmock\TestCaseTrait" not found in 
> /<<PKGBUILDDIR>>/tests/MockNamespaceTest.php on line 20
> 
> --
> 
> 14 tests triggered 14 PHPUnit deprecations:
> 
> 1) phpmock\MockCaseInsensitivityTest::testFailEnable
> Data Provider method 
> phpmock\MockCaseInsensitivityTest::provideTestCaseSensitivity() is not static
> 
> /<<PKGBUILDDIR>>/tests/MockCaseInsensitivityTest.php:38
> 
> 2) phpmock\MockCaseInsensitivityTest::testCaseSensitivity
> Data Provider method 
> phpmock\MockCaseInsensitivityTest::provideTestCaseSensitivity() is not static
> 
> /<<PKGBUILDDIR>>/tests/MockCaseInsensitivityTest.php:61
> 
> 3) phpmock\MockTest::testBackupStaticAttributes
> Data Provider method phpmock\MockTest::provideTestBackupStaticAttributes() is 
> not static
> 
> /<<PKGBUILDDIR>>/tests/AbstractMockTest.php:319
> 
> 4) phpmock\environment\SleepEnvironmentBuilderTest::testUsleep
> Data Provider method 
> phpmock\environment\SleepEnvironmentBuilderTest::provideTestUsleep() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/environment/SleepEnvironmentBuilderTest.php:88
> 
> 5) phpmock\functions\AbstractSleepFunctionTest::testSleepIncrementation
> Data Provider method 
> phpmock\functions\AbstractSleepFunctionTest::provideTestSleepIncrementation() 
> is not static
> 
> /<<PKGBUILDDIR>>/tests/functions/AbstractSleepFunctionTest.php:44
> 
> 6) 
> phpmock\functions\FixedMicrotimeFunctionTest::testConstructFailsForInvalidArgument
> Data Provider method 
> phpmock\functions\FixedMicrotimeFunctionTest::provideTestConstructFailsForInvalidArgument()
>  is not static
> 
> /<<PKGBUILDDIR>>/tests/functions/FixedMicrotimeFunctionTest.php:97
> 
> 7) phpmock\functions\FixedMicrotimeFunctionTest::testConstruct
> Data Provider method 
> phpmock\functions\FixedMicrotimeFunctionTest::provideTestConstruct() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/functions/FixedMicrotimeFunctionTest.php:125
> 
> 8) phpmock\functions\IncrementableTest::testIncrement
> Data Provider method 
> phpmock\functions\IncrementableTest::provideTestIncrement() is not static
> 
> /<<PKGBUILDDIR>>/tests/functions/IncrementableTest.php:28
> 
> 9) phpmock\functions\MicrotimeConverterTest::testConvertStringToFloat
> Data Provider method 
> phpmock\functions\MicrotimeConverterTest::provideFloatAndStrings() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/functions/MicrotimeConverterTest.php:26
> 
> 10) phpmock\functions\MicrotimeConverterTest::testConvertFloatToString
> Data Provider method 
> phpmock\functions\MicrotimeConverterTest::provideFloatAndStrings() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/functions/MicrotimeConverterTest.php:41
> 
> 11) phpmock\generator\MockFunctionGeneratorTest::testRemoveDefaultArguments
> Data Provider method 
> phpmock\generator\MockFunctionGeneratorTest::provideTestRemoveDefaultArguments()
>  is not static
> 
> /<<PKGBUILDDIR>>/tests/generator/MockFunctionGeneratorTest.php:26
> 
> 12) phpmock\generator\ParameterBuilderTest::testBuild
> Data Provider method 
> phpmock\generator\ParameterBuilderTest::provideTestBuild() is not static
> 
> /<<PKGBUILDDIR>>/tests/generator/ParameterBuilderTest.php:27
> 
> 13) phpmock\spy\SpyTest::testGetInvocations
> Data Provider method phpmock\spy\SpyTest::provideTestGetInvocations() is not 
> static
> 
> /<<PKGBUILDDIR>>/tests/spy/SpyTest.php:46
> 
> 14) phpmock\spy\SpyTest::testBackupStaticAttributes
> Data Provider method phpmock\spy\SpyTest::provideTestBackupStaticAttributes() 
> is not static
> 
> /<<PKGBUILDDIR>>/tests/AbstractMockTest.php:319
> 
> ERRORS!
> Tests: 164, Assertions: 238, Errors: 1, Warnings: 1, Deprecations: 14.
> make[1]: *** [debian/rules:22: 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-mock/

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