[pkg-php-pear] Bug#1039798: php-ml-json-ld: FTBFS with phpunit 10: make[1]: *** [debian/rules:27: override_dh_auto_test] Error 2

Athos Ribeiro athoscribeiro at gmail.com
Wed Jun 28 22:10:45 BST 2023


Source: php-ml-json-ld
Version: 1.2.1-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-ml-json-ld 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):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> phpunit
> PHPUnit 10.2.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.7
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml.dist
> 
> D......................S....................                      44 / 44 (100%)
> 
> Time: 00:00.025, Memory: 10.00 MB
> 
> There were 8 PHPUnit errors:
> 
> 1) ML\JsonLD\Test\W3CTestSuiteTest::testExpansion
> The data provider specified for ML\JsonLD\Test\W3CTestSuiteTest::testExpansion is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:76
> 
> 2) ML\JsonLD\Test\W3CTestSuiteTest::testCompaction
> The data provider specified for ML\JsonLD\Test\W3CTestSuiteTest::testCompaction is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:105
> 
> 3) ML\JsonLD\Test\W3CTestSuiteTest::testFlatten
> The data provider specified for ML\JsonLD\Test\W3CTestSuiteTest::testFlatten is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:139
> 
> 4) ML\JsonLD\Test\W3CTestSuiteTest::testRemoteDocumentLoading
> The data provider specified for ML\JsonLD\Test\W3CTestSuiteTest::testRemoteDocumentLoading is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:172
> 
> 5) ML\JsonLD\Test\W3CTestSuiteTest::testError
> The data provider specified for ML\JsonLD\Test\W3CTestSuiteTest::testError is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:224
> 
> 6) ML\JsonLD\Test\W3CTestSuiteTest::testFraming
> The data provider specified for ML\JsonLD\Test\W3CTestSuiteTest::testFraming is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:256
> 
> 7) ML\JsonLD\Test\W3CTestSuiteTest::testToRdf
> The data provider specified for ML\JsonLD\Test\W3CTestSuiteTest::testToRdf is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:309
> 
> 8) ML\JsonLD\Test\W3CTestSuiteTest::testFromRdf
> The data provider specified for ML\JsonLD\Test\W3CTestSuiteTest::testFromRdf is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:346
> 
> --
> 
> There were 2 PHPUnit test runner warnings:
> 
> 1) Test results may not be as expected because the XML configuration file did not pass validation:
> 
>   Line 11:
>   - Element 'phpunit', attribute 'backupStaticAttributes': The attribute 'backupStaticAttributes' is not allowed.
>   - Element 'phpunit', attribute 'convertErrorsToExceptions': The attribute 'convertErrorsToExceptions' is not allowed.
>   - Element 'phpunit', attribute 'convertNoticesToExceptions': The attribute 'convertNoticesToExceptions' is not allowed.
>   - Element 'phpunit', attribute 'convertWarningsToExceptions': The attribute 'convertWarningsToExceptions' is not allowed.
>   - Element 'phpunit', attribute 'strict': The attribute 'strict' is not allowed.
> 
>   Line 19:
>   - Element 'filter': This element is not expected.
> 
> 
> 2) No tests found in class "ML\JsonLD\Test\W3CTestSuiteTest".
> 
> --
> 
> 8 tests triggered 8 PHPUnit deprecations:
> 
> 1) ML\JsonLD\Test\W3CTestSuiteTest::testExpansion
> Data Provider method ML\JsonLD\Test\W3CTestSuiteTest::expansionProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:76
> 
> 2) ML\JsonLD\Test\W3CTestSuiteTest::testCompaction
> Data Provider method ML\JsonLD\Test\W3CTestSuiteTest::compactionProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:105
> 
> 3) ML\JsonLD\Test\W3CTestSuiteTest::testFlatten
> Data Provider method ML\JsonLD\Test\W3CTestSuiteTest::flattenProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:139
> 
> 4) ML\JsonLD\Test\W3CTestSuiteTest::testRemoteDocumentLoading
> Data Provider method ML\JsonLD\Test\W3CTestSuiteTest::remoteDocumentLoadingProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:172
> 
> 5) ML\JsonLD\Test\W3CTestSuiteTest::testError
> Data Provider method ML\JsonLD\Test\W3CTestSuiteTest::errorProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:224
> 
> 6) ML\JsonLD\Test\W3CTestSuiteTest::testFraming
> Data Provider method ML\JsonLD\Test\W3CTestSuiteTest::framingProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:256
> 
> 7) ML\JsonLD\Test\W3CTestSuiteTest::testToRdf
> Data Provider method ML\JsonLD\Test\W3CTestSuiteTest::toRdfProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:309
> 
> 8) ML\JsonLD\Test\W3CTestSuiteTest::testFromRdf
> Data Provider method ML\JsonLD\Test\W3CTestSuiteTest::fromRdfProvider() is not static
> 
> /<<PKGBUILDDIR>>/Test/W3CTestSuiteTest.php:346
> 
> WARNINGS!
> Tests: 44, Assertions: 264, Warnings: 2, Deprecations: 8, Skipped: 1.
> make[1]: *** [debian/rules:27: override_dh_auto_test] Error 2


The full build logs and additional context is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/0/php-ml-json-ld/

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