Source: php-amqplib Version: 3.5.3-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, php-amqplib 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 was 1 PHPUnit test runner warning: > > 1) Class PhpAmqpLib\Tests\Functional\AbstractConnectionTest declared in > /<<PKGBUILDDIR>>/tests/Functional/AbstractConnectionTest.php is abstract > > -- > > 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 7 errors: > > 1) PhpAmqpLib\Tests\Unit\Connection\LibraryPropertiesTest::requiredProperties > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Unit/Connection/LibraryPropertiesTest.php:28 > > 2) PhpAmqpLib\Tests\Unit\Connection\LibraryPropertiesTest::propertyTypes > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Unit/Connection/LibraryPropertiesTest.php:54 > > 3) > PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest::should_throw_exception_for_basic_operations_when_timeout_exceeded > with data set #0 > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelTimeoutTest.php:41 > /<<PKGBUILDDIR>>/tests/php_compat_71.php:27 > > 4) > PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest::should_throw_exception_for_basic_operations_when_timeout_exceeded > with data set #1 > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelTimeoutTest.php:41 > /<<PKGBUILDDIR>>/tests/php_compat_71.php:27 > > 5) > PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest::should_throw_exception_for_basic_operations_when_timeout_exceeded > with data set #2 > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelTimeoutTest.php:41 > /<<PKGBUILDDIR>>/tests/php_compat_71.php:27 > > 6) > PhpAmqpLib\Tests\Functional\Connection\Heartbeat\PCNTLHeartbeatSenderTest::alarm_sig_should_be_registered_when_conn_is_writing > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Functional/Connection/Heartbeat/PCNTLHeartbeatSenderTest.php:112 > > 7) > PhpAmqpLib\Tests\Functional\Connection\Heartbeat\SIGHeartbeatSenderTest::alarm_sig_should_be_registered_when_conn_is_writing > Error: Call to undefined method > PHPUnit\Framework\MockObject\MockBuilder::setMethods() > > /<<PKGBUILDDIR>>/tests/Functional/Connection/Heartbeat/SIGHeartbeatSenderTest.php:112 > > -- > > 20 tests triggered 20 PHPUnit deprecations: > > 1) > PhpAmqpLib\Tests\Unit\Channel\AMQPChannelTest::basic_consume_invalid_arguments > 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 > 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 > 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 > 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 > Data Provider method PhpAmqpLib\Tests\Unit\WireTest::bitWrData() is not static > > /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:24 > > 6) PhpAmqpLib\Tests\Unit\WireTest::octet_wr > 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 > 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 > Data Provider method PhpAmqpLib\Tests\Unit\WireTest::signedShortWrData() is > not static > > /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:115 > > 9) PhpAmqpLib\Tests\Unit\WireTest::long_wr > 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 > Data Provider method PhpAmqpLib\Tests\Unit\WireTest::signedLongWrData() is > not static > > /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:169 > > 11) PhpAmqpLib\Tests\Unit\WireTest::longlong_wr > 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 > Data Provider method PhpAmqpLib\Tests\Unit\WireTest::signedLonglongWrData() > is not static > > /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:223 > > 13) PhpAmqpLib\Tests\Unit\WireTest::shortstr_wr > Data Provider method PhpAmqpLib\Tests\Unit\WireTest::shortstrWrData() is not > static > > /<<PKGBUILDDIR>>/tests/Unit/WireTest.php:250 > > 14) PhpAmqpLib\Tests\Unit\WireTest::longstr_wr > 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 > Data Provider method > PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest::provide_operations() > is not static > > /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelTimeoutTest.php:62 > > 16) > PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::should_wait_until_signal_by_default > Data Provider method > PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::provide_channels() is > not static > > /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelWaitTest.php:23 > > 17) > PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::should_throw_timeout_exception > Data Provider method > PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::provide_channels() is > not static > > /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelWaitTest.php:45 > > 18) > PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::should_return_instantly_non_blocking > Data Provider method > PhpAmqpLib\Tests\Functional\Channel\ChannelWaitTest::provide_channels() is > not static > > /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelWaitTest.php:60 > > 19) > PhpAmqpLib\Tests\Functional\Connection\ConnectionCreationTest::create_connection > 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 > Data Provider method > PhpAmqpLib\Tests\Functional\Connection\SSLConnectionTest::secure_connection_params() > is not static > > /<<PKGBUILDDIR>>/tests/Functional/Connection/SSLConnectionTest.php:17 > > -- > > There were 5 risky tests: > > 1) PhpAmqpLib\Tests\Unit\Connection\LibraryPropertiesTest::requiredProperties > This test did not perform any assertions > > /<<PKGBUILDDIR>>/tests/Unit/Connection/LibraryPropertiesTest.php:25 > > 2) PhpAmqpLib\Tests\Unit\Connection\LibraryPropertiesTest::propertyTypes > This test did not perform any assertions > > /<<PKGBUILDDIR>>/tests/Unit/Connection/LibraryPropertiesTest.php:51 > > 3) > PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest::should_throw_exception_for_basic_operations_when_timeout_exceeded > with data set #0 > This test did not perform any assertions > > /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelTimeoutTest.php:62 > > 4) > PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest::should_throw_exception_for_basic_operations_when_timeout_exceeded > with data set #1 > This test did not perform any assertions > > /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelTimeoutTest.php:62 > > 5) > PhpAmqpLib\Tests\Functional\Channel\ChannelTimeoutTest::should_throw_exception_for_basic_operations_when_timeout_exceeded > with data set #2 > This test did not perform any assertions > > /<<PKGBUILDDIR>>/tests/Functional/Channel/ChannelTimeoutTest.php:62 > > ERRORS! > Tests: 840, Assertions: 1071, Errors: 7, Warnings: 1, Deprecations: 21, > Skipped: 11, Risky: 5. > make[1]: *** [debian/rules:23: 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-amqplib/ A phpunit reverse-dependencies rebuild status is available at http://people.ubuntu.com/~athos-ribeiro/rebuilds/phpunit10/index.html -- Athos Ribeiro