[pkg-php-pear] Bug#1039768: php-doctrine-common: FTBFS with phpunit 10: make[1]: *** [debian/rules:25: override_dh_auto_test] Error 2
Athos Ribeiro
athoscribeiro at gmail.com
Wed Jun 28 22:04:36 BST 2023
Source: php-doctrine-common
Version: 3.4.3-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-doctrine-common 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 warning:
>
> 1) Class DoctrineExceptionTest cannot be found in /<<PKGBUILDDIR>>/tests/Common/DoctrineExceptionTest.php
>
> --
>
> 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 50 errors:
>
> 1) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFetchingPublicIdentifierDoesNotCauseLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 2) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFetchingIdentifiersViaPublicGetterDoesNotCauseLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 3) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testCallingMethodCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 4) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFetchingPublicFieldsCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 5) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFetchingPublicAssociationCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 6) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFetchingProtectedAssociationViaPublicGetterCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 7) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testLazyLoadingTriggeredOnlyAtFirstPublicPropertyRead
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 8) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testNoticeWhenReadingNonExistentPublicProperties
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 9) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFalseWhenCheckingNonExistentProperty
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 10) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testNoErrorWhenSettingNonExistentProperty
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 11) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testCloningCallsClonerWithClonedObject
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 12) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFetchingTransientPropertiesWillNotTriggerLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 13) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testLoadProxyMethod
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 14) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testLoadingWithPersisterWillBeTriggeredOnlyOnce
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 15) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFailedLoadingWillThrowException
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 16) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testCloningWithPersister
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 17) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testNotInitializedProxyUnserialization
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 18) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testInitializedProxyUnserialization
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 19) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testInitializationRestoresDefaultPublicLazyLoadedFieldValues
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 20) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testSettingPublicFieldsCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 21) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testSettingPublicAssociationCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 22) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testCheckingPublicFieldsCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 23) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testCheckingPublicAssociationCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 24) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testCallingVariadicMethodCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:54
>
> 25) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testFetchingPublicIdentifierDoesNotCauseLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 26) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testFetchingIdentifiersViaPublicGetterDoesNotCauseLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 27) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testCallingMethodCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 28) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testFetchingPublicFieldsCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 29) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testFetchingPublicAssociationCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 30) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testFetchingProtectedAssociationViaPublicGetterCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 31) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testLazyLoadingTriggeredOnlyAtFirstPublicPropertyRead
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 32) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testNoticeWhenReadingNonExistentPublicProperties
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 33) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testFalseWhenCheckingNonExistentProperty
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 34) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testNoErrorWhenSettingNonExistentProperty
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 35) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testCloningCallsClonerWithClonedObject
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 36) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testFetchingTransientPropertiesWillNotTriggerLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 37) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testLoadProxyMethod
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 38) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testLoadingWithPersisterWillBeTriggeredOnlyOnce
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 39) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testFailedLoadingWillThrowException
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 40) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testCloningWithPersister
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 41) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testNotInitializedProxyUnserialization
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 42) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testInitializedProxyUnserialization
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 43) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testInitializationRestoresDefaultPublicLazyLoadedFieldValues
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 44) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testSettingPublicFieldsCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 45) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testSettingPublicAssociationCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 46) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testCheckingPublicFieldsCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 47) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testCheckingPublicAssociationCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 48) Doctrine\Tests\Common\Proxy\ProxyLogicTypedPropertiesTest::testCallingVariadicMethodCausesLazyLoading
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTypedPropertiesTest.php:56
>
> 49) Doctrine\Tests\Common\Proxy\ProxyLogicVoidReturnTypeTest::testParentVoidMethodIsCalledWithoutParameters
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php:38
>
> 50) Doctrine\Tests\Common\Proxy\ProxyLogicVoidReturnTypeTest::testParentVoidMethodIsCalledWithParameters
> Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php:38
>
> --
>
> 3 tests triggered 3 PHPUnit deprecations:
>
> 1) Doctrine\Tests\Common\Proxy\AbstractProxyFactoryTest::testNoExceptionIsThrownForValidIntegerAutoGenerateValues
> Data Provider method Doctrine\Tests\Common\Proxy\AbstractProxyFactoryTest::dataAutoGenerateValues() is not static
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/AbstractProxyFactoryTest.php:47
>
> 2) Doctrine\Tests\Common\Proxy\ProxyLogicIdentifierGetterTest::testNoLazyLoadingForIdentifier
> Data Provider method Doctrine\Tests\Common\Proxy\ProxyLogicIdentifierGetterTest::methodsForWhichLazyLoadingShouldBeDisabled() is not static
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicIdentifierGetterTest.php:25
>
> 3) Doctrine\Tests\Common\Util\DebugTest::testExportParentAttributes
> Data Provider method Doctrine\Tests\Common\Util\DebugTest::provideAttributesCases() is not static
>
> /<<PKGBUILDDIR>>/tests/Common/Util/DebugTest.php:127
>
> --
>
> There were 50 risky tests:
>
> 1) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFetchingPublicIdentifierDoesNotCauseLazyLoading
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:108
>
> 2) Doctrine\Tests\Common\Proxy\ProxyLogicTest::testFetchingIdentifiersViaPublicGetterDoesNotCauseLazyLoading
> This test did not perform any assertions
>
> /<<PKGBUILDDIR>>/tests/Common/Proxy/ProxyLogicTest.php:115
>
The full build logs and additional context is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/0/php-doctrine-common/
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