[pkg-php-pear] Bug#1070517: php-amqplib: FTBFS with phpunit 11: There were 21 PHPUnit errors
Athos Ribeiro
athoscribeiro at gmail.com
Mon May 6 15:10:14 BST 2024
Source: php-amqplib
Version: 3.6.2-1
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,
php-amqplib 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 21 PHPUnit errors:
>
> 1) PhpAmqpLib\Tests\Unit\Channel\AMQPChannelTest::basic_consume_invalid_arguments
> The data provider specified for PhpAmqpLib\Tests\Unit\Channel\AMQPChannelTest::basic_consume_invalid_arguments is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\Channel\AMQPChannelTest::basic_consume_invalid_arguments_provider() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Channel/AMQPChannelTest.php:34
>
> 2) PhpAmqpLib\Tests\Unit\Helper\MiscHelperTest::split_seconds_microseconds
> The data provider specified for PhpAmqpLib\Tests\Unit\Helper\MiscHelperTest::split_seconds_microseconds is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\Helper\MiscHelperTest::splitSecondsMicrosecondsData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Helper/MiscHelperTest.php:14
>
> 3) PhpAmqpLib\Tests\Unit\Helper\MiscHelperTest::hexdump
> The data provider specified for PhpAmqpLib\Tests\Unit\Helper\MiscHelperTest::hexdump is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\Helper\MiscHelperTest::hexdumpData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Helper/MiscHelperTest.php:23
>
> 4) PhpAmqpLib\Tests\Unit\Message\AMQPMessageTest::serialize_properties
> The data provider specified for PhpAmqpLib\Tests\Unit\Message\AMQPMessageTest::serialize_properties is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\Message\AMQPMessageTest::propertiesData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/Message/AMQPMessageTest.php:16
>
> 5) PhpAmqpLib\Tests\Unit\WireTest::bit_wr
> The data provider specified for PhpAmqpLib\Tests\Unit\WireTest::bit_wr is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\WireTest::bitWrData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:24
>
> 6) PhpAmqpLib\Tests\Unit\WireTest::octet_wr
> The data provider specified for PhpAmqpLib\Tests\Unit\WireTest::octet_wr is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\WireTest::octetWrData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:33
>
> 7) PhpAmqpLib\Tests\Unit\WireTest::signed_octet_wr
> The data provider specified for PhpAmqpLib\Tests\Unit\WireTest::signed_octet_wr is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\WireTest::signedOctetWrData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:60
>
> 8) PhpAmqpLib\Tests\Unit\WireTest::signed_short_wr
> The data provider specified for PhpAmqpLib\Tests\Unit\WireTest::signed_short_wr is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\WireTest::signedShortWrData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:115
>
> 9) PhpAmqpLib\Tests\Unit\WireTest::long_wr
> The data provider specified for PhpAmqpLib\Tests\Unit\WireTest::long_wr is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\WireTest::longWrData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:142
>
> 10) PhpAmqpLib\Tests\Unit\WireTest::signed_long_wr
> The data provider specified for PhpAmqpLib\Tests\Unit\WireTest::signed_long_wr is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\WireTest::signedLongWrData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:169
>
> 11) PhpAmqpLib\Tests\Unit\WireTest::longlong_wr
> The data provider specified for PhpAmqpLib\Tests\Unit\WireTest::longlong_wr is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\WireTest::longlongWrData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:196
>
> 12) PhpAmqpLib\Tests\Unit\WireTest::signed_longlong_wr
> The data provider specified for PhpAmqpLib\Tests\Unit\WireTest::signed_longlong_wr is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\WireTest::signedLonglongWrData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:223
>
> 13) PhpAmqpLib\Tests\Unit\WireTest::shortstr_wr
> The data provider specified for PhpAmqpLib\Tests\Unit\WireTest::shortstr_wr is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\WireTest::shortstrWrData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:250
>
> 14) PhpAmqpLib\Tests\Unit\WireTest::longstr_wr
> The data provider specified for PhpAmqpLib\Tests\Unit\WireTest::longstr_wr is invalid
> Data Provider method PhpAmqpLib\Tests\Unit\WireTest::longstrWrData() is not static
>
> /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:277
>
> 15) PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest::should_throw_exception_for_basic_operations_when_timeout_exceeded
> The data provider specified for PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest::should_throw_exception_for_basic_operations_when_timeout_exceeded is invalid
> Data Provider method PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest::provide_operations() is not static
>
> /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelTimeoutTest.php:71
>
> 16) PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::should_wait_until_signal_by_default
> The data provider specified for PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::should_wait_until_signal_by_default is invalid
> Data Provider method PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::provide_channels() is not static
>
> /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelWaitTest.php:25
>
> 17) PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::should_throw_timeout_exception
> The data provider specified for PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::should_throw_timeout_exception is invalid
> Data Provider method PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::provide_channels() is not static
>
> /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelWaitTest.php:75
>
> 18) PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::should_return_instantly_non_blocking
> The data provider specified for PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::should_return_instantly_non_blocking is invalid
> Data Provider method PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::provide_channels() is not static
>
> /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelWaitTest.php:90
>
> 19) PhpAmqpLib\Tests\Functional\Connection\ConnectionCreationTest::create_connection
> The data provider specified for PhpAmqpLib\Tests\Functional\Connection\ConnectionCreationTest::create_connection is invalid
> Data Provider method PhpAmqpLib\Tests\Functional\Connection\ConnectionCreationTest::hostDataProvider() is not static
>
> /<<PKGBUILDDIR>>/tests/Functional/Connection/ConnectionCreationTest.php:39
>
> 20) PhpAmqpLib\Tests\Functional\Connection\SSLConnectionTest::secure_connection_default_params
> The data provider specified for PhpAmqpLib\Tests\Functional\Connection\SSLConnectionTest::secure_connection_default_params is invalid
> Data Provider method PhpAmqpLib\Tests\Functional\Connection\SSLConnectionTest::secure_connection_params() is not static
>
> /<<PKGBUILDDIR>>/tests/Functional/Connection/SSLConnectionTest.php:17
>
> 21) PhpAmqpLib\Tests\Functional\Connection\SSLConnectionTest::secure_connection_default_params_with_keepalive
> The data provider specified for PhpAmqpLib\Tests\Functional\Connection\SSLConnectionTest::secure_connection_default_params_with_keepalive is invalid
> Data Provider method PhpAmqpLib\Tests\Functional\Connection\SSLConnectionTest::secure_connection_params() is not static
>
> /<<PKGBUILDDIR>>/tests/Functional/Connection/SSLConnectionTest.php:33
>
> --
>
> There were 3 PHPUnit test runner warnings:
>
> 1) Class PhpAmqpLib\Tests\Functional\AbstractConnectionTest declared in /<<PKGBUILDDIR>>/tests/Functional/AbstractConnectionTest.php is abstract
>
> 2) No tests found in class "PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest".
>
> 3) No tests found in class "PhpAmqpLib\Tests\Functional\Connection\SSLConnectionTest".
>
> --
>
> There were 210 PHPUnit test runner deprecations:
>
...
>
> There was 1 failure:
>
> 1) Functional\Connection\ConnectionResourceLeakTest::too_many_resources_after_close
> Failed asserting that -13 is identical to 0.
>
> /<<PKGBUILDDIR>>/tests/Functional/Connection/ConnectionResourceLeakTest.php:29
>
> --
>
> 3 tests triggered 3 PHPUnit deprecations:
>
> 1) PhpAmqpLib\Tests\Functional\Connection\Heartbeat\PCNTLHeartbeatSenderTest::alarm_sig_should_be_registered_when_conn_is_writing
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/Functional/Connection/Heartbeat/PCNTLHeartbeatSenderTest.php:97
>
> 2) PhpAmqpLib\Tests\Functional\Connection\Heartbeat\PCNTLHeartbeatSenderTest::signal_handler_should_ignore_inactive_lazy_connections
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/Functional/Connection/Heartbeat/PCNTLHeartbeatSenderTest.php:128
>
> 3) PhpAmqpLib\Tests\Functional\Connection\Heartbeat\SIGHeartbeatSenderTest::alarm_sig_should_be_registered_when_conn_is_writing
> MockBuilder::getMockForAbstractClass() is deprecated and will be removed in PHPUnit 12 without replacement.
>
> /<<PKGBUILDDIR>>/tests/Functional/Connection/Heartbeat/SIGHeartbeatSenderTest.php:97
>
> --
>
> There were 2 risky tests:
>
> 1) PhpAmqpLib\Tests\Functional\StreamIOTest::error_handler_is_restored_on_failed_connection
> Test code or tested code did not remove its own error handlers
>
> /<<PKGBUILDDIR>>/tests/Functional/StreamIOTest.php:19
>
> 2) PhpAmqpLib\Tests\Functional\StreamIOTest::error_handler_is_restored_on_success
> Test code or tested code did not remove its own error handlers
>
> /<<PKGBUILDDIR>>/tests/Functional/StreamIOTest.php:55
>
> ERRORS!
> Tests: 186, Assertions: 452, Errors: 21, Failures: 1, Warnings: 3, Deprecations: 213, Skipped: 11, Risky: 2.
> make[1]: *** [debian/rules:18: override_dh_auto_test] Error 2
The full build log is available at
http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit11/0/php-amqplib/php-amqplib_3.6.2-1+rebuild1714365022_amd64-2024-04-29T04:30:23Z.build
More information about the pkg-php-pear
mailing list