[pkg-php-pear] Bug#1028859: php-mockery: FTBFS: make[1]: *** [debian/rules:28: override_dh_auto_test] Error 2
Lucas Nussbaum
lucas at debian.org
Sat Jan 14 13:00:35 GMT 2023
Source: php-mockery
Version: 1.5.1-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230113 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit --include-path library
> PHPUnit 9.5.27 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 8.2.1
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> Warning: Your XML configuration validates against a deprecated schema.
> Suggestion: Migrate your XML configuration using "--migrate-configuration"!
>
> ....................R.......................................... 63 / 602 ( 10%)
> ...................S....R...RR........REE..............R.....S. 126 / 602 ( 20%)
> ............R...R....S....S.....................S.............. 189 / 602 ( 31%)
> ............EEEEEEEEE.....................R.R.....R.RR...RR.... 252 / 602 ( 41%)
> .............................R.R.RR.RR....R..........R......... 315 / 602 ( 52%)
> ............................................................... 378 / 602 ( 62%)
> ..............................................................S 441 / 602 ( 73%)
> ...............................................RRR........RR... 504 / 602 ( 83%)
> .....R.......R.RRR.RRR.RR.................R.................... 567 / 602 ( 94%)
> ...................RRRR.........R.. 602 / 602 (100%)
>
> Time: 00:00.646, Memory: 44.00 MB
>
> There were 11 errors:
>
> 1) ContainerTest::testMockingAllowsPublicPropertyStubbingOnRealClass
> Creation of dynamic property Mockery_55_MockeryTestFoo::$foo is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:635
>
> 2) ContainerTest::testMockingAllowsPublicPropertyStubbingOnNamedMock
> Creation of dynamic property Mockery_14__Foo::$foo is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:646
>
> 3) ExpectationTest::testSetsPublicPropertyWhenRequested
> Creation of dynamic property Mockery_0::$bar is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:91
>
> 4) ExpectationTest::testSetsPublicPropertyWhenRequestedUsingAlias
> Creation of dynamic property Mockery_0::$bar is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:100
>
> 5) ExpectationTest::testSetsPublicPropertiesWhenRequested
> Creation of dynamic property Mockery_0::$bar is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:109
>
> 6) ExpectationTest::testSetsPublicPropertiesWhenRequestedUsingAlias
> Creation of dynamic property Mockery_0::$bar is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:122
>
> 7) ExpectationTest::testSetsPublicPropertiesWhenRequestedMoreTimesThanSetValues
> Creation of dynamic property Mockery_0::$bar is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:135
>
> 8) ExpectationTest::testSetsPublicPropertiesWhenRequestedMoreTimesThanSetValuesUsingAlias
> Creation of dynamic property Mockery_0::$bar is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:148
>
> 9) ExpectationTest::testSetsPublicPropertiesWhenRequestedMoreTimesThanSetValuesWithDirectSet
> Creation of dynamic property Mockery_0::$bar is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:161
>
> 10) ExpectationTest::testSetsPublicPropertiesWhenRequestedMoreTimesThanSetValuesWithDirectSetUsingAlias
> Creation of dynamic property Mockery_0::$bar is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:175
>
> 11) ExpectationTest::testSetsPublicPropertiesCorrectlyForDifferentInstancesOfSameClass
> Creation of dynamic property Mockery_105_MockeryTest_Foo::$bar is deprecated
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:201
>
> --
>
> There were 44 risky tests:
>
> 1) test\Mockery\AllowsExpectsSyntaxTest::callVerificationCountCanBeOverridenAfterExpects
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/AllowsExpectsSyntaxTest.php:118
>
> 2) ContainerTest::testCanUseEmptyMethodlist
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:477
>
> 3) ContainerTest::testCanMockClassUsingMagicCallMethodsInPlaceOfNormalMethods
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:512
>
> 4) ContainerTest::testCanPartialMockObjectUsingMagicCallMethodsInPlaceOfNormalMethods
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:522
>
> 5) ContainerTest::testMockedStaticThrowsExceptionWhenMethodDoesNotExist
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:614
>
> 6) ContainerTest::testInstantiationOfInstanceMockWithConstructorParameterValidation
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:777
>
> 7) ContainerTest::testCanMockClassWithReservedWordMethod
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:1040
>
> 8) ContainerTest::testMockingPhpredisExtensionClassWorks
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:1070
>
> 9) ExpectationTest::testExpectsNoArguments
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:391
>
> 10) ExpectationTest::testExpectsArgumentsArray
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:405
>
> 11) ExpectationTest::testExpectsArgumentsArrayAcceptAClosureThatValidatesPassedArguments
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:452
>
> 12) ExpectationTest::testExpectsArgumentsArrayClosureDoesNotThrowExceptionIfOptionalArgumentsAreMissing
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:472
>
> 13) ExpectationTest::testExpectsArgumentsArrayClosureDoesNotThrowExceptionIfOptionalArgumentsMathTheExpectation
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:485
>
> 14) ExpectationTest::testExpectsAnyArguments
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:532
>
> 15) ExpectationTest::testExpectsArgumentMatchingObjectType
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:540
>
> 16) ExpectationTest::testOrderedCallsWithoutError
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:817
>
> 17) ExpectationTest::testDifferentArgumentsAndOrderingsPassWithoutException
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:835
>
> 18) ExpectationTest::testUnorderedCallsIgnoredForOrdering
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:853
>
> 19) ExpectationTest::testOrderingOfDefaultGrouping
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:865
>
> 20) ExpectationTest::testOrderingUsingNumberedGroups
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:883
>
> 21) ExpectationTest::testOrderingUsingNamedGroups
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:896
>
> 22) ExpectationTest::testEnsuresOrderingIsNotCrossMockByDefault
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:951
>
> 23) ExpectationTest::testDefaultExpectationsCanBeOrderedAndReplaced
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/ExpectationTest.php:1042
>
> 24) Mockery_MockTest::testAnonymousMockWorksWithNotAllowingMockingOfNonExistentMethods
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockTest.php:27
>
> 25) Mockery_MockTest::testMockWithNotAllowingMockingOfNonExistentMethodsCanBeGivenAdditionalMethodsToMockEvenIfTheyDontExistOnClass
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockTest.php:36
>
> 26) Mockery_MockTest::testProtectedMethodMockWithNotAllowingMockingOfNonExistentMethodsWhenShouldAllowMockingProtectedMethodsIsCalled
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockTest.php:46
>
> 27) Mockery_MockTest::testShouldIgnoreMissingCallingExistentMethods
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockTest.php:111
>
> 28) Mockery_MockTest::testShouldIgnoreMissingCallingNonExistentMethods
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockTest.php:120
>
> 29) Mockery\Tests\GeneratorTest::shouldNotDuplicateDoublyInheritedMethods
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockeryCanMockMultipleInterfacesWhichOverlapTest.php:29
>
> 30) test\Mockery\MockingNullableMethodsTest::itShouldAllowNonNullableTypeToBeSet
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockingNullableMethodsTest.php:45
>
> 31) test\Mockery\MockingNullableMethodsTest::itShouldAllowPrimitiveNullableToBeNull
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockingNullableMethodsTest.php:68
>
> 32) test\Mockery\MockingNullableMethodsTest::itShouldAllowPrimitiveNullableToBeSet
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockingNullableMethodsTest.php:79
>
> 33) test\Mockery\MockingNullableMethodsTest::itShouldAllowSelfToBeSet
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockingNullableMethodsTest.php:90
>
> 34) test\Mockery\MockingNullableMethodsTest::itShouldAllowNullableSelfToBeSet
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockingNullableMethodsTest.php:113
>
> 35) test\Mockery\MockingNullableMethodsTest::itShouldAllowNullableSelfToBeNull
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockingNullableMethodsTest.php:124
>
> 36) test\Mockery\MockingNullableMethodsTest::itShouldAllowClassToBeSet
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockingNullableMethodsTest.php:135
>
> 37) test\Mockery\MockingNullableMethodsTest::itShouldAllowNullalbeClassToBeSet
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockingNullableMethodsTest.php:158
>
> 38) test\Mockery\MockingNullableMethodsTest::itShouldAllowNullableClassToBeNull
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockingNullableMethodsTest.php:169
>
> 39) test\Mockery\MockingVoidMethodsTest::it_can_stub_and_mock_void_methods
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Mockery/MockingVoidMethodsTest.php:43
>
> 40) test\Mockery\Php80LanguageFeaturesTest::it_can_mock_a_class_with_a_mixed_argument_type_hint
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/PHP80/Php80LanguageFeaturesTest.php:33
>
> 41) test\Mockery\Php80LanguageFeaturesTest::it_can_mock_a_class_with_a_union_argument_type_hint
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/PHP80/Php80LanguageFeaturesTest.php:43
>
> 42) test\Mockery\Php80LanguageFeaturesTest::it_can_mock_a_class_with_a_union_argument_type_hint_including_null
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/PHP80/Php80LanguageFeaturesTest.php:53
>
> 43) test\Mockery\Php80LanguageFeaturesTest::it_can_mock_a_class_with_a_parent_argument_type_hint
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/PHP80/Php80LanguageFeaturesTest.php:62
>
> 44) test\Mockery\Php81LanguageFeaturesTest::it_can_mock_a_class_with_an_intersection_argument_type_hint
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/PHP81/Php81LanguageFeaturesTest.php:81
>
> --
>
> There were 6 skipped tests:
>
> 1) ContainerTest::testThrowsExceptionIfSettingExpectationForNonMockedMethodOfPartialMock
> For now...
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:429
>
> 2) ContainerTest::testCanOverrideExpectedParametersOfExtensionPHPClassesToPreserveRefs
> ext/mongo not installed
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:883
>
> 3) ContainerTest::testMockingIteratorAggregateDoesNotImplementIterator
> PHP < 8.0 is required.
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:1121
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:1121
>
> 4) ContainerTest::testMockingIteratorDoesNotImplementIterator
> PHP < 8.0 is required.
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:1162
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:1162
>
> 5) ContainerTest::canMockClassesThatImplementSerializable
> PHP < 8.1 is required.
>
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:1392
> /<<PKGBUILDDIR>>/tests/Mockery/ContainerTest.php:1392
>
> 6) tests\Mockery\Generator\MockConfigurationBuilderTest::reservedWordsAreBlackListedByDefault
> Need a builtin class with a method that is a reserved word
>
> /<<PKGBUILDDIR>>/tests/Mockery/Generator/MockConfigurationBuilderTest.php:39
>
> ERRORS!
> Tests: 602, Assertions: 853, Errors: 11, Skipped: 6, Risky: 44.
> make[1]: *** [debian/rules:28: override_dh_auto_test] Error 2
The full build log is available from:
http://qa-logs.debian.net/2023/01/13/php-mockery_1.5.1-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230113;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230113&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the pkg-php-pear
mailing list