Inheritance: implements Bravo3\Orm\Drivers\DriverInterface, implements Bravo3\Orm\Drivers\PubSubDriverInterface, use trait Bravo3\Orm\Traits\DebugTrait, use trait Bravo3\Orm\Traits\PubSubTrait, use trait Bravo3\Orm\Drivers\Common\StandardIdValidatorTrait
Example #1
0
 public function testClientConnectionSucceedOnSecondIteration()
 {
     $client = $this->prophesize(DummyClient::class);
     $driver = new RedisDriver(null, null, null, $client->reveal());
     $client->exists('doc:article:1')->shouldBeCalledTimes(1)->willReturn(true);
     $client->get('doc:article:1')->shouldBeCalledTimes(1)->willThrow(new \Exception());
     $client->get('doc:article:1')->shouldBeCalledTimes(1)->willReturn('Article');
     $driver->retrieve('doc:article:1');
 }