Source: php-composer-spdx-licenses
Version: 1.5.8-1
Severity: normal
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-p...@lists.alioth.debian.org
Usertags: phpunit11

Hi,

phpunit 11 is out and is now available in experimental. During a test rebuild,
php-composer-spdx-licenses 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 --bootstrap debian/tmp/fake/src/autoload.php 
> debian/tmp/fake/tests/SpdxLicensesTest.php
> PHPUnit 11.1.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.18
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> 
> .......                                                             7 / 7 
> (100%)
> 
> Time: 00:00.007, Memory: 10.00 MB
> 
> There were 5 PHPUnit errors:
> 
> 1) Composer\Spdx\SpdxLicensesTest::testValidate
> The data provider specified for Composer\Spdx\SpdxLicensesTest::testValidate 
> is invalid
> Data Provider method Composer\Spdx\SpdxLicensesTest::provideValidLicenses() 
> is not static
> 
> /<<PKGBUILDDIR>>/debian/tmp/fake/tests/SpdxLicensesTest.php:37
> 
> 2) Composer\Spdx\SpdxLicensesTest::testInvalidLicenses
> The data provider specified for 
> Composer\Spdx\SpdxLicensesTest::testInvalidLicenses is invalid
> Data Provider method Composer\Spdx\SpdxLicensesTest::provideInvalidLicenses() 
> is not static
> 
> /<<PKGBUILDDIR>>/debian/tmp/fake/tests/SpdxLicensesTest.php:48
> 
> 3) Composer\Spdx\SpdxLicensesTest::testInvalidArgument
> The data provider specified for 
> Composer\Spdx\SpdxLicensesTest::testInvalidArgument is invalid
> Data Provider method Composer\Spdx\SpdxLicensesTest::provideInvalidArgument() 
> is not static
> 
> /<<PKGBUILDDIR>>/debian/tmp/fake/tests/SpdxLicensesTest.php:59
> 
> 4) Composer\Spdx\SpdxLicensesTest::testResourceFilesExist
> The data provider specified for 
> Composer\Spdx\SpdxLicensesTest::testResourceFilesExist is invalid
> Data Provider method Composer\Spdx\SpdxLicensesTest::provideResourceFiles() 
> is not static
> 
> /<<PKGBUILDDIR>>/debian/tmp/fake/tests/SpdxLicensesTest.php:93
> 
> 5) Composer\Spdx\SpdxLicensesTest::testResourceFilesContainJson
> The data provider specified for 
> Composer\Spdx\SpdxLicensesTest::testResourceFilesContainJson is invalid
> Data Provider method Composer\Spdx\SpdxLicensesTest::provideResourceFiles() 
> is not static
> 
> /<<PKGBUILDDIR>>/debian/tmp/fake/tests/SpdxLicensesTest.php:108
> 
> --
> 
> There were 7 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 
> Composer\Spdx\SpdxLicensesTest::testValidate(). 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 
> Composer\Spdx\SpdxLicensesTest::testInvalidLicenses(). 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 
> Composer\Spdx\SpdxLicensesTest::testInvalidArgument(). 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 
> Composer\Spdx\SpdxLicensesTest::testGetResourcesDir(). 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 
> Composer\Spdx\SpdxLicensesTest::testResourceFilesExist(). 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 
> Composer\Spdx\SpdxLicensesTest::testResourceFilesContainJson(). 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: 7, Assertions: 25, Errors: 5, Deprecations: 7.
> make[1]: *** [debian/rules:12: override_dh_auto_test] Error 2


The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-composer-spdx-licenses/php-composer-spdx-licenses_1.5.8-1+rebuild1714365798_amd64-2024-04-29T04:43:19Z.build

Reply via email to