[pkg-php-pear] Bug#1039783: php-json-schema: FTBFS with phpunit 10: make[1]: *** [debian/rules:23: override_dh_auto_test] Error 2

Athos Ribeiro athoscribeiro at gmail.com
Wed Jun 28 22:07:33 BST 2023


Source: php-json-schema
Version: 5.2.12-2
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-json-schema 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):
> There were 8 PHPUnit errors:
> 
> 1) JsonSchema\Tests\Drafts\Draft3Test::testInvalidCases
> The data provider specified for JsonSchema\Tests\Drafts\Draft3Test::testInvalidCases is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/tests/Drafts/Draft3Test.php:29
> 
> 2) JsonSchema\Tests\Drafts\Draft3Test::testInvalidCasesUsingAssoc
> The data provider specified for JsonSchema\Tests\Drafts\Draft3Test::testInvalidCasesUsingAssoc is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/tests/Drafts/Draft3Test.php:58
> 
> 3) JsonSchema\Tests\Drafts\Draft3Test::testValidCases
> The data provider specified for JsonSchema\Tests\Drafts\Draft3Test::testValidCases is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/tests/Drafts/Draft3Test.php:90
> 
> 4) JsonSchema\Tests\Drafts\Draft3Test::testValidCasesUsingAssoc
> The data provider specified for JsonSchema\Tests\Drafts\Draft3Test::testValidCasesUsingAssoc is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/tests/Drafts/Draft3Test.php:112
> 
> 5) JsonSchema\Tests\Drafts\Draft4Test::testInvalidCases
> The data provider specified for JsonSchema\Tests\Drafts\Draft4Test::testInvalidCases is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/tests/Drafts/Draft4Test.php:29
> 
> 6) JsonSchema\Tests\Drafts\Draft4Test::testInvalidCasesUsingAssoc
> The data provider specified for JsonSchema\Tests\Drafts\Draft4Test::testInvalidCasesUsingAssoc is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/tests/Drafts/Draft4Test.php:58
> 
> 7) JsonSchema\Tests\Drafts\Draft4Test::testValidCases
> The data provider specified for JsonSchema\Tests\Drafts\Draft4Test::testValidCases is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/tests/Drafts/Draft4Test.php:90
> 
> 8) JsonSchema\Tests\Drafts\Draft4Test::testValidCasesUsingAssoc
> The data provider specified for JsonSchema\Tests\Drafts\Draft4Test::testValidCasesUsingAssoc is invalid
> Empty data set provided by data provider
> 
> /<<PKGBUILDDIR>>/tests/Drafts/Draft4Test.php:112
> 
> --
> 
> There were 3 PHPUnit test runner warnings:
> 
> 1) Test results may not be as expected because the XML configuration file did not pass validation:
> 
>   Line 14:
>   - 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 'syntaxCheck': The attribute 'syntaxCheck' is not allowed.
>   - Element 'phpunit', attribute 'verbose': The attribute 'verbose' is not allowed.
> 
>   Line 21:
>   - Element 'filter': This element is not expected.
> 
> 
> 2) No tests found in class "JsonSchema\Tests\Drafts\Draft3Test".
> 
> 3) No tests found in class "JsonSchema\Tests\Drafts\Draft4Test".
> 
> --
> 
> There were 502 errors:
> 
> 1) JsonSchema\Tests\Constraints\AdditionalPropertiesTest::testInvalidCases with data set #0
> Error: Call to undefined method JsonSchema\Tests\Constraints\AdditionalPropertiesTest::prophesize()
> 

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

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