[pkg-php-pear] Bug#1070626: phpunit-comparator: FTBFS with phpunit 11: TypeError: SebastianBergmann\Comparator\ComparisonFailure::__construct(): Argument #3 ($expectedAsString) must be of type string, bool given, called in /<<PKGBUILDDIR>>/tests/ComparisonFailureTest.php on line 55
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:32:42 BST 2024
Source: phpunit-comparator
Version: 4.0.8-2
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,
phpunit-comparator 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):
> There were 45 PHPUnit errors:
>
> 1) SebastianBergmann\Comparator\ArrayComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\ArrayComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\ArrayComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ArrayComparatorTest.php:137
>
> 2) SebastianBergmann\Comparator\ArrayComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\ArrayComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\ArrayComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ArrayComparatorTest.php:147
>
> 3) SebastianBergmann\Comparator\ArrayComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\ArrayComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\ArrayComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ArrayComparatorTest.php:162
>
> 4) SebastianBergmann\Comparator\DOMNodeComparatorTest::testAcceptsSucceeds
> The data provider specified for SebastianBergmann\Comparator\DOMNodeComparatorTest::testAcceptsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\DOMNodeComparatorTest::acceptsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DOMNodeComparatorTest.php:127
>
> 5) SebastianBergmann\Comparator\DOMNodeComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\DOMNodeComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\DOMNodeComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DOMNodeComparatorTest.php:137
>
> 6) SebastianBergmann\Comparator\DOMNodeComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\DOMNodeComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\DOMNodeComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DOMNodeComparatorTest.php:147
>
> 7) SebastianBergmann\Comparator\DOMNodeComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\DOMNodeComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\DOMNodeComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DOMNodeComparatorTest.php:164
>
> 8) SebastianBergmann\Comparator\DateTimeComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\DateTimeComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\DateTimeComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DateTimeComparatorTest.php:166
>
> 9) SebastianBergmann\Comparator\DateTimeComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\DateTimeComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\DateTimeComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DateTimeComparatorTest.php:176
>
> 10) SebastianBergmann\Comparator\DateTimeComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\DateTimeComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\DateTimeComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DateTimeComparatorTest.php:191
>
> 11) SebastianBergmann\Comparator\DoubleComparatorTest::testAcceptsSucceeds
> The data provider specified for SebastianBergmann\Comparator\DoubleComparatorTest::testAcceptsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\DoubleComparatorTest::acceptsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DoubleComparatorTest.php:94
>
> 12) SebastianBergmann\Comparator\DoubleComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\DoubleComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\DoubleComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DoubleComparatorTest.php:104
>
> 13) SebastianBergmann\Comparator\DoubleComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\DoubleComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\DoubleComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DoubleComparatorTest.php:114
>
> 14) SebastianBergmann\Comparator\DoubleComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\DoubleComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\DoubleComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/DoubleComparatorTest.php:129
>
> 15) SebastianBergmann\Comparator\ExceptionComparatorTest::testAcceptsSucceeds
> The data provider specified for SebastianBergmann\Comparator\ExceptionComparatorTest::testAcceptsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\ExceptionComparatorTest::acceptsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ExceptionComparatorTest.php:94
>
> 16) SebastianBergmann\Comparator\ExceptionComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\ExceptionComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\ExceptionComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ExceptionComparatorTest.php:104
>
> 17) SebastianBergmann\Comparator\ExceptionComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\ExceptionComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\ExceptionComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ExceptionComparatorTest.php:114
>
> 18) SebastianBergmann\Comparator\ExceptionComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\ExceptionComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\ExceptionComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ExceptionComparatorTest.php:129
>
> 19) SebastianBergmann\Comparator\FactoryTest::testGetComparatorFor
> The data provider specified for SebastianBergmann\Comparator\FactoryTest::testGetComparatorFor is invalid
> Data Provider method SebastianBergmann\Comparator\FactoryTest::instanceProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/FactoryTest.php:79
>
> 20) SebastianBergmann\Comparator\MockObjectComparatorTest::testAcceptsSucceeds
> The data provider specified for SebastianBergmann\Comparator\MockObjectComparatorTest::testAcceptsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\MockObjectComparatorTest::acceptsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/MockObjectComparatorTest.php:38
>
> 21) SebastianBergmann\Comparator\MockObjectComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\MockObjectComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\MockObjectComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/MockObjectComparatorTest.php:48
>
> 22) SebastianBergmann\Comparator\MockObjectComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\MockObjectComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\MockObjectComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/MockObjectComparatorTest.php:58
>
> 23) SebastianBergmann\Comparator\MockObjectComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\MockObjectComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\MockObjectComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/MockObjectComparatorTest.php:73
>
> 24) SebastianBergmann\Comparator\NumericComparatorTest::testAcceptsSucceeds
> The data provider specified for SebastianBergmann\Comparator\NumericComparatorTest::testAcceptsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\NumericComparatorTest::acceptsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/NumericComparatorTest.php:126
>
> 25) SebastianBergmann\Comparator\NumericComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\NumericComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\NumericComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/NumericComparatorTest.php:136
>
> 26) SebastianBergmann\Comparator\NumericComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\NumericComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\NumericComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/NumericComparatorTest.php:146
>
> 27) SebastianBergmann\Comparator\NumericComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\NumericComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\NumericComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/NumericComparatorTest.php:161
>
> 28) SebastianBergmann\Comparator\ObjectComparatorTest::testAcceptsSucceeds
> The data provider specified for SebastianBergmann\Comparator\ObjectComparatorTest::testAcceptsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\ObjectComparatorTest::acceptsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ObjectComparatorTest.php:108
>
> 29) SebastianBergmann\Comparator\ObjectComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\ObjectComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\ObjectComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ObjectComparatorTest.php:118
>
> 30) SebastianBergmann\Comparator\ObjectComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\ObjectComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\ObjectComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ObjectComparatorTest.php:128
>
> 31) SebastianBergmann\Comparator\ObjectComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\ObjectComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\ObjectComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ObjectComparatorTest.php:143
>
> 32) SebastianBergmann\Comparator\ResourceComparatorTest::testAcceptsSucceeds
> The data provider specified for SebastianBergmann\Comparator\ResourceComparatorTest::testAcceptsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\ResourceComparatorTest::acceptsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ResourceComparatorTest.php:82
>
> 33) SebastianBergmann\Comparator\ResourceComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\ResourceComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\ResourceComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ResourceComparatorTest.php:92
>
> 34) SebastianBergmann\Comparator\ResourceComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\ResourceComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\ResourceComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ResourceComparatorTest.php:102
>
> 35) SebastianBergmann\Comparator\ResourceComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\ResourceComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\ResourceComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ResourceComparatorTest.php:117
>
> 36) SebastianBergmann\Comparator\ScalarComparatorTest::testAcceptsSucceeds
> The data provider specified for SebastianBergmann\Comparator\ScalarComparatorTest::testAcceptsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\ScalarComparatorTest::acceptsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ScalarComparatorTest.php:127
>
> 37) SebastianBergmann\Comparator\ScalarComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\ScalarComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\ScalarComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ScalarComparatorTest.php:137
>
> 38) SebastianBergmann\Comparator\ScalarComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\ScalarComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\ScalarComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ScalarComparatorTest.php:147
>
> 39) SebastianBergmann\Comparator\ScalarComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\ScalarComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\ScalarComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/ScalarComparatorTest.php:162
>
> 40) SebastianBergmann\Comparator\SplObjectStorageComparatorTest::testAcceptsFails
> The data provider specified for SebastianBergmann\Comparator\SplObjectStorageComparatorTest::testAcceptsFails is invalid
> Data Provider method SebastianBergmann\Comparator\SplObjectStorageComparatorTest::acceptsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/SplObjectStorageComparatorTest.php:102
>
> 41) SebastianBergmann\Comparator\SplObjectStorageComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\SplObjectStorageComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\SplObjectStorageComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/SplObjectStorageComparatorTest.php:112
>
> 42) SebastianBergmann\Comparator\SplObjectStorageComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\SplObjectStorageComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\SplObjectStorageComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/SplObjectStorageComparatorTest.php:127
>
> 43) SebastianBergmann\Comparator\TypeComparatorTest::testAcceptsSucceeds
> The data provider specified for SebastianBergmann\Comparator\TypeComparatorTest::testAcceptsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\TypeComparatorTest::acceptsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/TypeComparatorTest.php:75
>
> 44) SebastianBergmann\Comparator\TypeComparatorTest::testAssertEqualsSucceeds
> The data provider specified for SebastianBergmann\Comparator\TypeComparatorTest::testAssertEqualsSucceeds is invalid
> Data Provider method SebastianBergmann\Comparator\TypeComparatorTest::assertEqualsSucceedsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/TypeComparatorTest.php:85
>
> 45) SebastianBergmann\Comparator\TypeComparatorTest::testAssertEqualsFails
> The data provider specified for SebastianBergmann\Comparator\TypeComparatorTest::testAssertEqualsFails is invalid
> Data Provider method SebastianBergmann\Comparator\TypeComparatorTest::assertEqualsFailsProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/TypeComparatorTest.php:100
>
> --
>
> There were 9 PHPUnit test runner warnings:
>
> 1) No tests found in class "SebastianBergmann\Comparator\DOMNodeComparatorTest".
>
> 2) No tests found in class "SebastianBergmann\Comparator\DoubleComparatorTest".
>
> 3) No tests found in class "SebastianBergmann\Comparator\ExceptionComparatorTest".
>
> 4) No tests found in class "SebastianBergmann\Comparator\MockObjectComparatorTest".
>
> 5) No tests found in class "SebastianBergmann\Comparator\NumericComparatorTest".
>
> 6) No tests found in class "SebastianBergmann\Comparator\ObjectComparatorTest".
>
> 7) No tests found in class "SebastianBergmann\Comparator\ResourceComparatorTest".
>
> 8) No tests found in class "SebastianBergmann\Comparator\ScalarComparatorTest".
>
> 9) No tests found in class "SebastianBergmann\Comparator\TypeComparatorTest".
>
> --
>
> There were 60 PHPUnit test runner deprecations:
>
...
>
> --
>
> There were 2 errors:
>
> 1) SebastianBergmann\Comparator\ComparisonFailureTest::testComparisonFailure
> TypeError: SebastianBergmann\Comparator\ComparisonFailure::__construct(): Argument #5 ($message) must be of type string, bool given, called in /<<PKGBUILDDIR>>/tests/ComparisonFailureTest.php on line 27
>
> /<<PKGBUILDDIR>>/tests/ComparisonFailureTest.php:27
>
> 2) SebastianBergmann\Comparator\ComparisonFailureTest::testDiffNotPossible
> TypeError: SebastianBergmann\Comparator\ComparisonFailure::__construct(): Argument #3 ($expectedAsString) must be of type string, bool given, called in /<<PKGBUILDDIR>>/tests/ComparisonFailureTest.php on line 55
>
> /<<PKGBUILDDIR>>/tests/ComparisonFailureTest.php:55
>
> ERRORS!
> Tests: 12, Assertions: 11, Errors: 47, Warnings: 9, Deprecations: 60.
> make[1]: *** [debian/rules:17: override_dh_auto_test] Error 2
The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/phpunit-comparator/phpunit-comparator_4.0.8-2+rebuild1714377788_amd64-2024-04-29T08:03:09Z.build
More information about the pkg-php-pear
mailing list