public function it_can_llen() { $this->client->llen('test')->shouldBeCalled()->willReturn(1); $this->lLen('test')->shouldReturn(1); $this->client->llen('test')->willThrow($this->predisException); $this->shouldThrow(DriverException::class)->during('lLen', ['test']); }