mirror of
https://github.com/predis/predis.git
synced 2026-08-31 04:35:05 +00:00
Run php-cs-fixer.
This commit is contained in:
+5
-5
@@ -65,8 +65,8 @@ class Client implements ClientInterface
|
||||
* @param mixed $options Client options.
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return OptionsInterface
|
||||
*
|
||||
* @return OptionsInterface
|
||||
*/
|
||||
protected function createOptions($options)
|
||||
{
|
||||
@@ -97,8 +97,8 @@ class Client implements ClientInterface
|
||||
* @param mixed $parameters Connection parameters or connection instance.
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return ConnectionInterface
|
||||
*
|
||||
* @return ConnectionInterface
|
||||
*/
|
||||
protected function createConnection($parameters)
|
||||
{
|
||||
@@ -190,8 +190,8 @@ class Client implements ClientInterface
|
||||
* @param string $connectionID Identifier of a connection.
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return Client
|
||||
*
|
||||
* @return Client
|
||||
*/
|
||||
public function getClientFor($connectionID)
|
||||
{
|
||||
@@ -254,8 +254,8 @@ class Client implements ClientInterface
|
||||
* @param string $connectionID Index or alias of the single connection.
|
||||
*
|
||||
* @throws NotSupportedException
|
||||
* @return Connection\NodeConnectionInterface
|
||||
*
|
||||
* @return Connection\NodeConnectionInterface
|
||||
*/
|
||||
public function getConnectionById($connectionID)
|
||||
{
|
||||
@@ -343,8 +343,8 @@ class Client implements ClientInterface
|
||||
* @param ErrorResponseInterface $response Instance of the error response.
|
||||
*
|
||||
* @throws ServerException
|
||||
* @return mixed
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
protected function onErrorResponse(CommandInterface $command, ErrorResponseInterface $response)
|
||||
{
|
||||
|
||||
@@ -85,24 +85,24 @@ class KeyPreciseExpireTest extends PredisCommandTestCase
|
||||
$this->assertSame(0, $redis->exists('foo'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @medium
|
||||
* @group connected
|
||||
* @group slow
|
||||
*/
|
||||
/**
|
||||
* @medium
|
||||
* @group connected
|
||||
* @group slow
|
||||
*/
|
||||
public function testConsistencyWithTTL()
|
||||
{
|
||||
$ttl = 1000;
|
||||
$redis = $this->getClient();
|
||||
$ttl = 1000;
|
||||
$redis = $this->getClient();
|
||||
|
||||
$this->assertEquals('OK', $redis->set('foo', 'bar'));
|
||||
$this->assertSame(1, $redis->pexpire('foo', $ttl));
|
||||
$this->assertEquals('OK', $redis->set('foo', 'bar'));
|
||||
$this->assertSame(1, $redis->pexpire('foo', $ttl));
|
||||
|
||||
$this->sleep(0.5);
|
||||
$this->assertThat($redis->pttl('foo'), $this->logicalAnd(
|
||||
$this->sleep(0.5);
|
||||
$this->assertThat($redis->pttl('foo'), $this->logicalAnd(
|
||||
$this->lessThanOrEqual($ttl), $this->greaterThan($ttl - 800)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
|
||||
Reference in New Issue
Block a user