spec\MGDigital\BusQue\Redis\PHPRedis\PHPRedisAdapterSpec::it_can_brpoplpush PHP 메소드

it_can_brpoplpush() 공개 메소드

public it_can_brpoplpush ( )
    public function it_can_brpoplpush()
    {
        $this->redis->brpoplpush('test', 'test', 0)->shouldBeCalled()->willReturn('test');
        $result = $this->bRPopLPush('test', 'test', 0);
        \PHPUnit_Framework_Assert::assertEquals('test', $result->getWrappedObject());
        $this->redis->brpoplpush('test', 'test', 0)->willThrow(new \RedisException());
        $this->shouldThrow(DriverException::class)->during('bRPopLPush', ['test', 'test', 0]);
    }