Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Jul 15, 2013
2 parents efe4e65 + a5e7f3c commit 554b35b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ public function testGetCapabilitiesTtl()
$redisResource = new RedisResource();
$redisResource->connect($host, $port);
$info = $redisResource->info();
$mayorVersion = (int)$info['redis_version'];
$majorVersion = (int)$info['redis_version'];

$this->assertEquals($mayorVersion, $this->_options->getResourceManager()->getMayorVersion($this->_options->getResourceId()));
$this->assertEquals($majorVersion, $this->_options->getResourceManager()->getMajorVersion($this->_options->getResourceId()));

$capabilities = $this->_storage->getCapabilities();
if ($mayorVersion < 2) {
if ($majorVersion < 2) {
$this->assertEquals(0, $capabilities->getMinTtl(), 'Redis version < 2.0.0 does not support key expiration');
} else {
$this->assertEquals(1, $capabilities->getMinTtl(), 'Redis version > 2.0.0 supports key expiration');
Expand Down

0 comments on commit 554b35b

Please sign in to comment.