spec\MGDigital\BusQue\Redis\PHPRedis\PHPRedisAdapterSpec::it_can_hget PHP Метод

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

public it_can_hget ( )
    public function it_can_hget()
    {
        $this->redis->hGet('test', 'test')->shouldBeCalled()->willReturn('test');
        $this->hGet('test', 'test')->shouldReturn('test');
        $this->redis->hGet('test', 'test')->willThrow(new \RedisException());
        $this->shouldThrow(DriverException::class)->during('hGet', ['test', 'test']);
    }