'x-max-length-bytes' => '300',
'x-max-priority' => '4',
],
],
],
'exchange' => [
'arguments' => [
'alternate-exchange' => 'alternate',
],
],
], $factory);
$connection->publish('body');
}
public static function invalidQueueArgumentsDataProvider(): iterable
{
$baseDsn = 'amqp://localhost/%2f/messages';
return [
[$baseDsn.'?queues[messages][arguments][x-delay]=not-a-number', []],
[$baseDsn.'?queues[messages][arguments][x-expires]=not-a-number', []],
[$baseDsn.'?queues[messages][arguments][x-max-length]=not-a-number', []],
[$baseDsn.'?queues[messages][arguments][x-max-length-bytes]=not-a-number', []],
[