[pkg-php-pear] Bug#1070612: php-webmozart-assert: FTBFS with phpunit 11: There were 13 PHPUnit errors
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:30:47 BST 2024
Source: php-webmozart-assert
Version: 1.11.0-1
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-webmozart-assert 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
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
>
> Runtime: PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
>
> .. 2 / 2 (100%)
>
> Time: 00:00.009, Memory: 10.00 MB
>
> There were 13 PHPUnit errors:
>
> 1) Webmozart\Assert\Tests\AssertTest::testAssert
> The data provider specified for Webmozart\Assert\Tests\AssertTest::testAssert is invalid
> Data Provider method Webmozart\Assert\Tests\AssertTest::getTests() is not static
>
> /<<PKGBUILDDIR>>/tests/AssertTest.php:608
>
> 2) Webmozart\Assert\Tests\AssertTest::testNullOr
> The data provider specified for Webmozart\Assert\Tests\AssertTest::testNullOr is invalid
> Data Provider method Webmozart\Assert\Tests\AssertTest::getTests() is not static
>
> /<<PKGBUILDDIR>>/tests/AssertTest.php:630
>
> 3) Webmozart\Assert\Tests\AssertTest::testNullOrAcceptsNull
> The data provider specified for Webmozart\Assert\Tests\AssertTest::testNullOrAcceptsNull is invalid
> Data Provider method Webmozart\Assert\Tests\AssertTest::getMethods() is not static
>
> /<<PKGBUILDDIR>>/tests/AssertTest.php:652
>
> 4) Webmozart\Assert\Tests\AssertTest::testAllArray
> The data provider specified for Webmozart\Assert\Tests\AssertTest::testAllArray is invalid
> Data Provider method Webmozart\Assert\Tests\AssertTest::getTests() is not static
>
> /<<PKGBUILDDIR>>/tests/AssertTest.php:661
>
> 5) Webmozart\Assert\Tests\AssertTest::testAllNullOrArray
> The data provider specified for Webmozart\Assert\Tests\AssertTest::testAllNullOrArray is invalid
> Data Provider method Webmozart\Assert\Tests\AssertTest::getTests() is not static
>
> /<<PKGBUILDDIR>>/tests/AssertTest.php:686
>
> 6) Webmozart\Assert\Tests\AssertTest::testAllTraversable
> The data provider specified for Webmozart\Assert\Tests\AssertTest::testAllTraversable is invalid
> Data Provider method Webmozart\Assert\Tests\AssertTest::getTests() is not static
>
> /<<PKGBUILDDIR>>/tests/AssertTest.php:718
>
> 7) Webmozart\Assert\Tests\AssertTest::testConvertValuesToStrings
> The data provider specified for Webmozart\Assert\Tests\AssertTest::testConvertValuesToStrings is invalid
> Data Provider method Webmozart\Assert\Tests\AssertTest::getStringConversions() is not static
>
> /<<PKGBUILDDIR>>/tests/AssertTest.php:768
>
> 8) Webmozart\Assert\Tests\AssertTest::testIsAOfExceptionMessages
> The data provider specified for Webmozart\Assert\Tests\AssertTest::testIsAOfExceptionMessages is invalid
> Data Provider method Webmozart\Assert\Tests\AssertTest::getInvalidIsAOfCases() is not static
>
> /<<PKGBUILDDIR>>/tests/AssertTest.php:814
>
> 9) Webmozart\Assert\Tests\ProjectCodeTest::testHasNullOr
> The data provider specified for Webmozart\Assert\Tests\ProjectCodeTest::testHasNullOr is invalid
> Data Provider method Webmozart\Assert\Tests\ProjectCodeTest::providesMethodNames() is not static
>
> /<<PKGBUILDDIR>>/tests/ProjectCodeTest.php:40
>
> 10) Webmozart\Assert\Tests\ProjectCodeTest::testHasAll
> The data provider specified for Webmozart\Assert\Tests\ProjectCodeTest::testHasAll is invalid
> Data Provider method Webmozart\Assert\Tests\ProjectCodeTest::providesMethodNames() is not static
>
> /<<PKGBUILDDIR>>/tests/ProjectCodeTest.php:69
>
> 11) Webmozart\Assert\Tests\ProjectCodeTest::testIsInReadme
> The data provider specified for Webmozart\Assert\Tests\ProjectCodeTest::testIsInReadme is invalid
> Data Provider method Webmozart\Assert\Tests\ProjectCodeTest::providesMethodNames() is not static
>
> /<<PKGBUILDDIR>>/tests/ProjectCodeTest.php:93
>
> 12) Webmozart\Assert\Tests\ProjectCodeTest::testHasThrowsAnnotation
> The data provider specified for Webmozart\Assert\Tests\ProjectCodeTest::testHasThrowsAnnotation is invalid
> Data Provider method Webmozart\Assert\Tests\ProjectCodeTest::provideMethods() is not static
>
> /<<PKGBUILDDIR>>/tests/ProjectCodeTest.php:111
>
> 13) Webmozart\Assert\Tests\ProjectCodeTest::testHasCorrespondingStaticAnalysisFile
> The data provider specified for Webmozart\Assert\Tests\ProjectCodeTest::testHasCorrespondingStaticAnalysisFile is invalid
> Data Provider method Webmozart\Assert\Tests\ProjectCodeTest::provideMethods() is not static
>
> /<<PKGBUILDDIR>>/tests/ProjectCodeTest.php:138
>
> --
>
> There were 17 PHPUnit test runner deprecations:
>
> 1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!
>
> 2) Metadata found in doc-comment for method Webmozart\Assert\Tests\AssertTest::doTearDownAfterClass(). 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 Webmozart\Assert\Tests\AssertTest::testAssert(). 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 Webmozart\Assert\Tests\AssertTest::testNullOr(). 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 Webmozart\Assert\Tests\AssertTest::testNullOrAcceptsNull(). 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 Webmozart\Assert\Tests\AssertTest::testAllArray(). 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 Webmozart\Assert\Tests\AssertTest::testAllNullOrArray(). 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 Webmozart\Assert\Tests\AssertTest::testAllTraversable(). 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 Webmozart\Assert\Tests\AssertTest::testConvertValuesToStrings(). 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 Webmozart\Assert\Tests\AssertTest::testIsAOfExceptionMessages(). 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 Webmozart\Assert\Tests\ProjectCodeTest::doSetUpBeforeClass(). 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 Webmozart\Assert\Tests\ProjectCodeTest::testHasNullOr(). 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 class Webmozart\Assert\Tests\ProjectCodeTest. 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 Webmozart\Assert\Tests\ProjectCodeTest::testHasAll(). 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 Webmozart\Assert\Tests\ProjectCodeTest::testIsInReadme(). 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 Webmozart\Assert\Tests\ProjectCodeTest::testHasThrowsAnnotation(). 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 Webmozart\Assert\Tests\ProjectCodeTest::testHasCorrespondingStaticAnalysisFile(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
>
> ERRORS!
> Tests: 2, Assertions: 2, Errors: 13, Deprecations: 17.
> make[1]: *** [debian/rules:16: override_dh_auto_test] Error 2
The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-webmozart-assert/php-webmozart-assert_1.11.0-1+rebuild1714378578_amd64-2024-04-29T08:16:19Z.build
More information about the pkg-php-pear
mailing list