添加 key expire = 0 的单元测试

This commit is contained in:
尘缘
2016-05-08 09:01:56 +08:00
parent 2ace73254f
commit f5a74eb60e

View File

@@ -75,6 +75,9 @@ abstract class cacheTestCase extends \PHPUnit_Framework_TestCase
$array = $cache->get('array_test');
$this->assertArrayHasKey('array_test', $array);
$this->assertEquals('array_test', $array['array_test']);
$result = $cache->set('no_expire', 1, 0);
$this->assertTrue($result);
}
/**