mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
单元测试完善
This commit is contained in:
@@ -166,6 +166,18 @@ abstract class cacheTestCase extends \PHPUnit_Framework_TestCase
|
||||
$this->assertFalse($cache->get('number_test'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取并删除缓存测试
|
||||
* @return mixed
|
||||
* @access public
|
||||
*/
|
||||
public function testPull()
|
||||
{
|
||||
$cache = $this->prepare();
|
||||
$this->assertEquals(11, $cache->pull('number_test'));
|
||||
$this->assertFalse($cache->get('number_test'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 清空缓存测试
|
||||
* @return mixed
|
||||
|
||||
Reference in New Issue
Block a user