bRPopLPush() публичный Метод

public bRPopLPush ( string $source, string $destination, integer $timeout )
$source string
$destination string
$timeout integer
Пример #1
0
 public function it_can_await_a_queued_command()
 {
     $this->adapter->bRPopLPush('test:test:queue', 'test:test:receiving', 0)->shouldBeCalled()->willReturn('test');
     $lua = $this->getLua('receive_message');
     $this->adapter->evalLua($lua, ['test', 'test', 'test'])->shouldBeCalled()->willReturn('test');
     /* @var \MGDigital\BusQue\ReceivedCommand $receivedCommand */
     $receivedCommand = $this->awaitCommand('test', 0);
     $receivedCommand->getId()->shouldReturn('test');
     $receivedCommand->getQueueName()->shouldReturn('test');
     $receivedCommand->getSerialized()->shouldReturn('test');
 }