[pkg-php-pear] Bug#1070539: php-email-validator: FTBFS with phpunit 11: make[1]: *** [debian/rules:20: override_dh_auto_test] Error 1
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:14:59 BST 2024
Source: php-email-validator
Version: 4.0.2-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-email-validator 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 --exclude-group network,slow
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
>
> ............................................................... 63 / 342 ( 18%)
> .......................................................I....... 126 / 342 ( 36%)
> ............S................I................................. 189 / 342 ( 55%)
> ............................................................... 252 / 342 ( 73%)
> ................S.............................................. 315 / 342 ( 92%)
> ........................... 342 / 342 (100%)
>
> Time: 00:01.222, Memory: 12.00 MB
>
> There was 1 PHPUnit test runner warning:
>
> 1) Using comma-separated values with --exclude-group is deprecated and will no longer work in PHPUnit 12
>
> --
>
> There were 21 PHPUnit test runner deprecations:
>
> 1) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\EmailLexerTest::testLexerTokens(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 2) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\EmailLexerTest::testLexerParsesInvalidUTF8(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 3) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\EmailParserTest::testGetParts(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 4) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\DNSCheckValidationTest::testValidDNS(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 5) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\DNSCheckValidationTest::testLocalOrReservedDomainError(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 6) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\DNSCheckValidationTest::testDomainAcceptsNoMailError(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 7) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\DNSCheckValidationTest::testNoDNSError(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 8) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\DNSCheckValidationTest::testUnableToGetDNSRecord(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 9) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\Extra\SpoofCheckValidationTest::testUTF8EmailAreValid(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 10) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\MessageIDValidationTest::testValidMessageIDs(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 11) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\MessageIDValidationTest::testInvalidMessageIDs(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 12) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\NoRFCWarningsValidationTest::testEmailWithoutWarningsIsValid(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 13) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\RFCValidationDomainPartTest::testValidEmails(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 14) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\RFCValidationDomainPartTest::testInvalidEmails(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 15) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\RFCValidationDomainPartTest::testInvalidEmailsWithErrorsCheck(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 16) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\RFCValidationDomainPartTest::testValidEmailsWithWarningsCheck(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 17) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\RFCValidationDomainPartTest::testInvalidUTF16(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 18) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\RFCValidationTest::testValidEmails(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 19) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\RFCValidationTest::testValidEmailsWithWarningsCheck(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 20) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\RFCValidationTest::testInvalidEmails(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> 21) Metadata found in doc-comment for method Egulias\EmailValidator\Tests\EmailValidator\Validation\RFCValidationTest::testInvalidDEmailsWithErrorsCheck(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> WARNINGS!
> Tests: 342, Assertions: 457, Warnings: 1, Deprecations: 21, Skipped: 2, Incomplete: 2.
> make[1]: *** [debian/rules:20: override_dh_auto_test] Error 1
The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-email-validator/php-email-validator_4.0.2-2+rebuild1714366860_amd64-2024-04-29T05:01:01Z.build
More information about the pkg-php-pear
mailing list