Source: phpunit-recursion-context
Version: 4.0.5-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: pkg-php-p...@lists.alioth.debian.org
Usertags: phpunit

Hi,

We will start the phpunit 10 transition in unstable soon. During a test
rebuild, phpunit-recursion-context 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 --bootstrap src/autoload.php
> PHPUnit 10.2.2 by Sebastian Bergmann and contributors.
> 
> Runtime:       PHP 8.2.7
> Configuration: /<<PKGBUILDDIR>>/phpunit.xml
> 
> FFFFFFFFFFFFFF.......SSSSSSS........                              36 / 36 
> (100%)
> 
> Time: 00:00.010, Memory: 8.00 MB
> 
> There was 1 PHPUnit test runner deprecation:
> 
> 1) Your XML configuration validates against a deprecated schema. Migrate your 
> XML configuration using "--migrate-configuration"!
> 
> --
> 
> There were 14 failures:
> 
> 1) SebastianBergmann\RecursionContext\ContextTest::testAddFails with data set 
> #0
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::add(): Argument #1 ($value) must 
> be of type object|array, bool given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 93" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:93
> .
> 
> 2) SebastianBergmann\RecursionContext\ContextTest::testAddFails with data set 
> #1
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::add(): Argument #1 ($value) must 
> be of type object|array, bool given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 93" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:93
> .
> 
> 3) SebastianBergmann\RecursionContext\ContextTest::testAddFails with data set 
> #2
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::add(): Argument #1 ($value) must 
> be of type object|array, null given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 93" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:93
> .
> 
> 4) SebastianBergmann\RecursionContext\ContextTest::testAddFails with data set 
> #3
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::add(): Argument #1 ($value) must 
> be of type object|array, string given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 93" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:93
> .
> 
> 5) SebastianBergmann\RecursionContext\ContextTest::testAddFails with data set 
> #4
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::add(): Argument #1 ($value) must 
> be of type object|array, int given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 93" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:93
> .
> 
> 6) SebastianBergmann\RecursionContext\ContextTest::testAddFails with data set 
> #5
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::add(): Argument #1 ($value) must 
> be of type object|array, float given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 93" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:93
> .
> 
> 7) SebastianBergmann\RecursionContext\ContextTest::testAddFails with data set 
> #6
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::add(): Argument #1 ($value) must 
> be of type object|array, resource given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 93" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:93
> .
> 
> 8) SebastianBergmann\RecursionContext\ContextTest::testContainsFails with 
> data set #0
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::contains(): Argument #1 ($value) 
> must be of type object|array, bool given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 104" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:104
> .
> 
> 9) SebastianBergmann\RecursionContext\ContextTest::testContainsFails with 
> data set #1
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::contains(): Argument #1 ($value) 
> must be of type object|array, bool given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 104" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:104
> .
> 
> 10) SebastianBergmann\RecursionContext\ContextTest::testContainsFails with 
> data set #2
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::contains(): Argument #1 ($value) 
> must be of type object|array, null given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 104" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:104
> .
> 
> 11) SebastianBergmann\RecursionContext\ContextTest::testContainsFails with 
> data set #3
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::contains(): Argument #1 ($value) 
> must be of type object|array, string given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 104" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:104
> .
> 
> 12) SebastianBergmann\RecursionContext\ContextTest::testContainsFails with 
> data set #4
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::contains(): Argument #1 ($value) 
> must be of type object|array, int given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 104" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:104
> .
> 
> 13) SebastianBergmann\RecursionContext\ContextTest::testContainsFails with 
> data set #5
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::contains(): Argument #1 ($value) 
> must be of type object|array, float given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 104" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:104
> .
> 
> 14) SebastianBergmann\RecursionContext\ContextTest::testContainsFails with 
> data set #6
> Failed asserting that exception of type "TypeError" matches expected 
> exception "SebastianBergmann\RecursionContext\Exception". Message was: 
> "SebastianBergmann\RecursionContext\Context::contains(): Argument #1 ($value) 
> must be of type object|array, resource given, called in 
> /<<PKGBUILDDIR>>/tests/ContextTest.php on line 104" at
> /<<PKGBUILDDIR>>/tests/ContextTest.php:104
> .
> 
> --
> 
> 5 tests triggered 5 PHPUnit deprecations:
> 
> 1) SebastianBergmann\RecursionContext\ContextTest::testAddFails
> Data Provider method 
> SebastianBergmann\RecursionContext\ContextTest::failsProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ContextTest.php:88
> 
> 2) SebastianBergmann\RecursionContext\ContextTest::testContainsFails
> Data Provider method 
> SebastianBergmann\RecursionContext\ContextTest::failsProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ContextTest.php:99
> 
> 3) SebastianBergmann\RecursionContext\ContextTest::testAdd
> Data Provider method 
> SebastianBergmann\RecursionContext\ContextTest::valuesProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ContextTest.php:110
> 
> 4) SebastianBergmann\RecursionContext\ContextTest::testContainsFound
> Data Provider method 
> SebastianBergmann\RecursionContext\ContextTest::valuesProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ContextTest.php:131
> 
> 5) SebastianBergmann\RecursionContext\ContextTest::testContainsNotFound
> Data Provider method 
> SebastianBergmann\RecursionContext\ContextTest::valuesProvider() is not static
> 
> /<<PKGBUILDDIR>>/tests/ContextTest.php:143
> 
> FAILURES!
> Tests: 36, Assertions: 36, Failures: 14, Deprecations: 6, Skipped: 7.
> make[1]: *** [debian/rules:9: override_dh_auto_test] Error 1


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

A phpunit reverse-dependencies rebuild status is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html

-- 
Athos Ribeiro

Reply via email to