Browse Source

Improve test readability

Marc Würth 7 years ago
parent
commit
be1c6936b4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/TestCase/Cache/SimpleCacheEngineTest.php

+ 2 - 1
tests/TestCase/Cache/SimpleCacheEngineTest.php

@@ -135,7 +135,8 @@ class SimpleCacheEngineTest extends TestCase
     public function testSetWithTtl()
     {
         $this->assertTrue($this->cache->set('key', 'a value'));
-        $this->assertTrue($this->cache->set('expired', 'a value', 0));
+        $ttl = 0;
+        $this->assertTrue($this->cache->set('expired', 'a value', $ttl));
 
         sleep(1);
         $this->assertSame('a value', $this->cache->get('key'));