diff options
Diffstat (limited to 'tests/lib/cache.php')
-rw-r--r-- | tests/lib/cache.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/lib/cache.php b/tests/lib/cache.php index 49a56d147d3..08653d4a310 100644 --- a/tests/lib/cache.php +++ b/tests/lib/cache.php @@ -66,16 +66,4 @@ abstract class Test_Cache extends UnitTestCase { $this->assertFalse($this->instance->hasKey('2_value1')); $this->assertFalse($this->instance->hasKey('3_value1')); } - - function testTTL() { - $value='foobar'; - $this->instance->set('value1',$value,1); - $value2='foobar'; - $this->instance->set('value2',$value2); - sleep(2); - $this->assertFalse($this->instance->hasKey('value1')); - $this->assertNull($this->instance->get('value1')); - $this->assertTrue($this->instance->hasKey('value2')); - $this->assertEqual($value2,$this->instance->get('value2')); - } } |