spec\MGDigital\BusQue\Redis\Predis\MockingClientInterface::brpoplpush PHP Метод

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

public brpoplpush ( $source, $destination, $timeout )
    public function brpoplpush($source, $destination, $timeout);

Usage Example

Пример #1
0
 public function it_can_brpoplpush()
 {
     $this->client->brpoplpush('test', 'test', 0)->shouldBeCalled()->willReturn('test');
     $result = $this->bRPopLPush('test', 'test', 0);
     \PHPUnit_Framework_Assert::assertEquals('test', $result->getWrappedObject());
     $this->client->brpoplpush('test', 'test', 0)->willThrow($this->predisException);
     $this->shouldThrow(DriverException::class)->during('bRPopLPush', ['test', 'test', 0]);
 }