浏览代码

Improve test readability

Marc Würth 7 年之前
父节点
当前提交
be1c6936b4
共有 1 个文件被更改,包括 2 次插入1 次删除
  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'));