[pkg-php-pear] Bug#1070542: php-faker: FTBFS with phpunit 11: There were 35 PHPUnit errors

Athos Ribeiro athoscribeiro at gmail.com
Mon May 6 15:15:26 BST 2024


Source: php-faker
Version: 1.20.0+dfsg-2
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-pear at lists.alioth.debian.org
Usertags: phpunit11

Hi,

phpunit 11 is out and is now available in experimental. During a test rebuild,
php-faker 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
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
...
> There were 35 PHPUnit errors:
> 
> 1) Faker\Test\Calculator\EanTest::testChecksumEan8
> The data provider specified for Faker\Test\Calculator\EanTest::testChecksumEan8 is invalid
> Data Provider method Faker\Test\Calculator\EanTest::Ean8checksumProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/EanTest.php:33
> 
> 2) Faker\Test\Calculator\EanTest::testEan8Validation
> The data provider specified for Faker\Test\Calculator\EanTest::testEan8Validation is invalid
> Data Provider method Faker\Test\Calculator\EanTest::ean8ValidationProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/EanTest.php:41
> 
> 3) Faker\Test\Calculator\EanTest::testChecksumEan13
> The data provider specified for Faker\Test\Calculator\EanTest::testChecksumEan13 is invalid
> Data Provider method Faker\Test\Calculator\EanTest::Ean13checksumProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/EanTest.php:70
> 
> 4) Faker\Test\Calculator\EanTest::testEan13Validation
> The data provider specified for Faker\Test\Calculator\EanTest::testEan13Validation is invalid
> Data Provider method Faker\Test\Calculator\EanTest::ean13ValidationProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/EanTest.php:78
> 
> 5) Faker\Test\Calculator\IbanTest::testChecksum
> The data provider specified for Faker\Test\Calculator\IbanTest::testChecksum is invalid
> Data Provider method Faker\Test\Calculator\IbanTest::checksumProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/IbanTest.php:86
> 
> 6) Faker\Test\Calculator\IbanTest::testIsValid
> The data provider specified for Faker\Test\Calculator\IbanTest::testIsValid is invalid
> Data Provider method Faker\Test\Calculator\IbanTest::validatorProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/IbanTest.php:235
> 
> 7) Faker\Test\Calculator\IbanTest::testAlphaToNumber
> The data provider specified for Faker\Test\Calculator\IbanTest::testAlphaToNumber is invalid
> Data Provider method Faker\Test\Calculator\IbanTest::alphaToNumberProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/IbanTest.php:275
> 
> 8) Faker\Test\Calculator\IbanTest::testMod97
> The data provider specified for Faker\Test\Calculator\IbanTest::testMod97 is invalid
> Data Provider method Faker\Test\Calculator\IbanTest::mod97Provider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/IbanTest.php:301
> 
> 9) Faker\Test\Calculator\IsbnTest::testChecksumIsbn
> The data provider specified for Faker\Test\Calculator\IsbnTest::testChecksumIsbn is invalid
> Data Provider method Faker\Test\Calculator\IsbnTest::isbnChecksumProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/IsbnTest.php:39
> 
> 10) Faker\Test\Calculator\IsbnTest::testIsbnValidation
> The data provider specified for Faker\Test\Calculator\IsbnTest::testIsbnValidation is invalid
> Data Provider method Faker\Test\Calculator\IsbnTest::isbnValidationProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/IsbnTest.php:53
> 
> 11) Faker\Test\Calculator\LuhnTest::testComputeCheckDigit
> The data provider specified for Faker\Test\Calculator\LuhnTest::testComputeCheckDigit is invalid
> Data Provider method Faker\Test\Calculator\LuhnTest::checkDigitProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/LuhnTest.php:31
> 
> 12) Faker\Test\Calculator\LuhnTest::testIsValid
> The data provider specified for Faker\Test\Calculator\LuhnTest::testIsValid is invalid
> Data Provider method Faker\Test\Calculator\LuhnTest::validatorProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Calculator/LuhnTest.php:58
> 
> 13) Faker\Test\Extension\ContainerBuilderTest::testAddRejectsInvalidValue
> The data provider specified for Faker\Test\Extension\ContainerBuilderTest::testAddRejectsInvalidValue is invalid
> Data Provider method Faker\Test\Extension\ContainerBuilderTest::provideInvalidValue() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Extension/ContainerBuilderTest.php:23
> 
> 14) Faker\Test\Extension\ContainerTest::testGetThrowsRuntimeExceptionWhenServiceResolvedForIdentifierIsNotAnExtension
> The data provider specified for Faker\Test\Extension\ContainerTest::testGetThrowsRuntimeExceptionWhenServiceResolvedForIdentifierIsNotAnExtension is invalid
> Data Provider method Faker\Test\Extension\ContainerTest::provideDefinitionThatDoesNotResolveToExtension() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Extension/ContainerTest.php:49
> 
> 15) Faker\Test\Provider\BaseTest::testRegexifyBasicFeatures
> The data provider specified for Faker\Test\Provider\BaseTest::testRegexifyBasicFeatures is invalid
> Data Provider method Faker\Test\Provider\BaseTest::regexifyBasicDataProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/BaseTest.php:322
> 
> 16) Faker\Test\Provider\BaseTest::testRegexifySupportedRegexSyntax
> The data provider specified for Faker\Test\Provider\BaseTest::testRegexifySupportedRegexSyntax is invalid
> Data Provider method Faker\Test\Provider\BaseTest::regexifyDataProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/BaseTest.php:354
> 
> 17) Faker\Test\Provider\DateTimeTest::testDateTimeBetween
> The data provider specified for Faker\Test\Provider\DateTimeTest::testDateTimeBetween is invalid
> Data Provider method Faker\Test\Provider\DateTimeTest::providerDateTimeBetween() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/DateTimeTest.php:191
> 
> 18) Faker\Test\Provider\DateTimeTest::testDateTimeInInterval
> The data provider specified for Faker\Test\Provider\DateTimeTest::testDateTimeInInterval is invalid
> Data Provider method Faker\Test\Provider\DateTimeTest::providerDateTimeInInterval() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/DateTimeTest.php:213
> 
> 19) Faker\Test\Provider\PaymentTest::testCreditCardNumberReturnsValidCreditCardNumber
> The data provider specified for Faker\Test\Provider\PaymentTest::testCreditCardNumberReturnsValidCreditCardNumber is invalid
> Data Provider method Faker\Test\Provider\PaymentTest::creditCardNumberProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/PaymentTest.php:37
> 
> 20) Faker\Test\Provider\PaymentTest::testIban
> The data provider specified for Faker\Test\Provider\PaymentTest::testIban is invalid
> Data Provider method Faker\Test\Provider\PaymentTest::ibanFormatProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/PaymentTest.php:179
> 
> 21) Faker\Test\Provider\PersonTest::testFirstName
> The data provider specified for Faker\Test\Provider\PersonTest::testFirstName is invalid
> Data Provider method Faker\Test\Provider\PersonTest::firstNameProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/PersonTest.php:16
> 
> 22) Faker\Test\Provider\PersonTest::testTitle
> The data provider specified for Faker\Test\Provider\PersonTest::testTitle is invalid
> Data Provider method Faker\Test\Provider\PersonTest::titleProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/PersonTest.php:44
> 
> 23) Faker\Provider\en_US\PaymentTest::testCalculateRoutingNumberChecksum
> The data provider specified for Faker\Provider\en_US\PaymentTest::testCalculateRoutingNumberChecksum is invalid
> Data Provider method Faker\Provider\en_US\PaymentTest::routingNumberProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/en_US/PaymentTest.php:70
> 
> 24) Faker\Test\Provider\fi_FI\PersonTest::testPersonalIdentityNumberUsesBirthDateIfProvided
> The data provider specified for Faker\Test\Provider\fi_FI\PersonTest::testPersonalIdentityNumberUsesBirthDateIfProvided is invalid
> Data Provider method Faker\Test\Provider\fi_FI\PersonTest::provideSeedAndExpectedReturn() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/fi_FI/PersonTest.php:28
> 
> 25) Faker\Test\Provider\ro_RO\PersonTest::testInvalidGenderThrowsException
> The data provider specified for Faker\Test\Provider\ro_RO\PersonTest::testInvalidGenderThrowsException is invalid
> Data Provider method Faker\Test\Provider\ro_RO\PersonTest::invalidGenderProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/ro_RO/PersonTest.php:114
> 
> 26) Faker\Test\Provider\ro_RO\PersonTest::testValidYearReturnsValidCnp
> The data provider specified for Faker\Test\Provider\ro_RO\PersonTest::testValidYearReturnsValidCnp is invalid
> Data Provider method Faker\Test\Provider\ro_RO\PersonTest::validYearProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/ro_RO/PersonTest.php:125
> 
> 27) Faker\Test\Provider\ro_RO\PersonTest::testInvalidYearThrowsException
> The data provider specified for Faker\Test\Provider\ro_RO\PersonTest::testInvalidYearThrowsException is invalid
> Data Provider method Faker\Test\Provider\ro_RO\PersonTest::invalidYearProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/ro_RO/PersonTest.php:139
> 
> 28) Faker\Test\Provider\ro_RO\PersonTest::testValidCountyCodeReturnsValidCnp
> The data provider specified for Faker\Test\Provider\ro_RO\PersonTest::testValidCountyCodeReturnsValidCnp is invalid
> Data Provider method Faker\Test\Provider\ro_RO\PersonTest::validCountyCodeProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/ro_RO/PersonTest.php:149
> 
> 29) Faker\Test\Provider\ro_RO\PersonTest::testInvalidCountyCodeThrowsException
> The data provider specified for Faker\Test\Provider\ro_RO\PersonTest::testInvalidCountyCodeThrowsException is invalid
> Data Provider method Faker\Test\Provider\ro_RO\PersonTest::invalidCountyCodeProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/ro_RO/PersonTest.php:162
> 
> 30) Faker\Test\Provider\ro_RO\PersonTest::testValidInputDataReturnsValidCnp
> The data provider specified for Faker\Test\Provider\ro_RO\PersonTest::testValidInputDataReturnsValidCnp is invalid
> Data Provider method Faker\Test\Provider\ro_RO\PersonTest::validInputDataProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/ro_RO/PersonTest.php:191
> 
> 31) Faker\Test\Provider\ru_RU\CompanyTest::testInn10Checksum
> The data provider specified for Faker\Test\Provider\ru_RU\CompanyTest::testInn10Checksum is invalid
> Data Provider method Faker\Test\Provider\ru_RU\CompanyTest::checksumProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/ru_RU/CompanyTest.php:53
> 
> 32) Faker\Test\Provider\ru_RU\CompanyTest::testInn10IsValid
> The data provider specified for Faker\Test\Provider\ru_RU\CompanyTest::testInn10IsValid is invalid
> Data Provider method Faker\Test\Provider\ru_RU\CompanyTest::inn10ValidatorProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/ru_RU/CompanyTest.php:74
> 
> 33) Faker\Test\Provider\sv_SE\PersonTest::testPersonalIdentityNumberUsesBirthDateIfProvided
> The data provider specified for Faker\Test\Provider\sv_SE\PersonTest::testPersonalIdentityNumberUsesBirthDateIfProvided is invalid
> Data Provider method Faker\Test\Provider\sv_SE\PersonTest::provideSeedAndExpectedReturn() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/sv_SE/PersonTest.php:28
> 
> 34) Faker\Test\Provider\tr_TR\PersonTest::testTcNoChecksum
> The data provider specified for Faker\Test\Provider\tr_TR\PersonTest::testTcNoChecksum is invalid
> Data Provider method Faker\Test\Provider\tr_TR\PersonTest::tcNoChecksumProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/tr_TR/PersonTest.php:40
> 
> 35) Faker\Test\Provider\tr_TR\PersonTest::testIsValid
> The data provider specified for Faker\Test\Provider\tr_TR\PersonTest::testIsValid is invalid
> Data Provider method Faker\Test\Provider\tr_TR\PersonTest::tcNoValidatorProvider() is not static
> 
> /<<PKGBUILDDIR>>/test/Faker/Provider/tr_TR/PersonTest.php:65
> 
> --
> 
> There were 2 PHPUnit test runner warnings:
> 
> 1) No tests found in class "Faker\Test\Calculator\EanTest".
> 
> 2) No tests found in class "Faker\Test\Calculator\IbanTest".
> 
> --
> 
> There were 210 PHPUnit test runner deprecations:
> 
...
> 
> --
> 
> There was 1 risky test:
> 
> 1) Faker\Test\UniqueGeneratorTest::testUniqueGeneratorRetries
> This test did not perform any assertions
> 
> /<<PKGBUILDDIR>>/test/Faker/UniqueGeneratorTest.php:21
> 
> ERRORS!
> Tests: 1670, Assertions: 11190, Errors: 35, Warnings: 2, Deprecations: 221, Skipped: 34, Risky: 1.
> make[1]: *** [debian/rules:17: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-faker/php-faker_1.20.0+dfsg-2+rebuild1714366954_amd64-2024-04-29T05:02:35Z.build



More information about the pkg-php-pear mailing list