'VisibilityTimeout' => null,
'MaxNumberOfMessages' => 9,
'MessageAttributeNames' =>
['All'
],
'WaitTimeSeconds' => 20
]],
$firstResult],
[[['QueueUrl' => 'https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue',
'VisibilityTimeout' => null,
'MaxNumberOfMessages' => 9,
'MessageAttributeNames' =>
['All'
],
'WaitTimeSeconds' => 20
]],
$secondResult],
];
$client->
expects($this->
exactly(2
)) ->
method('receiveMessage'
) ->
willReturnCallback(function D...
$args) use (&
$series) { [$expectedArgs,
$return] =
array_shift($series);
$this->
assertSame($expectedArgs,
$args);
return $return;
}) ;
$connection =
new Connection(['queue_name' => 'queue', 'account' => 123, 'auto_setup' => false
],
$client);
$this->
assertNotNull($connection->
get());