ソースを参照

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'));