diff options
author | Soenke Ruempler <soenke@jimdo.com> | 2013-10-04 17:04:02 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2013-10-04 21:34:22 +0400 |
commit | 0f003bcb2d406b7540d20ab3f2011357fe637187 (patch) | |
tree | 53f7fe137064b442081adfb95aca43cec33fa918 | |
parent | f3c0dd2b9fc6508326439911b7b630ebaa1fced5 (diff) |
regression test for: setex properly handles long expire values
-rw-r--r-- | tests/TestRedis.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/TestRedis.php b/tests/TestRedis.php index b93cef10..2a684754 100644 --- a/tests/TestRedis.php +++ b/tests/TestRedis.php @@ -408,6 +408,13 @@ class Redis_Test extends TestSuite $this->assertTrue($this->redis->get('key') === '42'); } + public function testExpireAtWithLong() { + $longExpiryTimeExceedingInt = 3153600000; + $this->redis->delete('key'); + $this->assertTrue($this->redis->setex('key', $longExpiryTimeExceedingInt, 'val') === TRUE); + $this->assertTrue($this->redis->ttl('key') === $longExpiryTimeExceedingInt); + } + public function testIncr() { $this->redis->set('key', 0); |