Bravo3\Orm\Tests\Drivers\Redis\RedisDriverTest::testClientConnectionFailure PHP Метод

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

    public function testClientConnectionFailure()
    {
        $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(3)->willThrow(new \Exception());
        $driver->retrieve('doc:article:1');
    }