mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
单元测试调整
This commit is contained in:
@@ -160,14 +160,4 @@ abstract class cacheTestCase extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertNotNull(Cache::rm('a'));
|
$this->assertNotNull(Cache::rm('a'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testQueue()
|
|
||||||
{
|
|
||||||
$cache = $this->prepare();
|
|
||||||
$this->assertTrue($cache->set('1', '1'));
|
|
||||||
$this->assertTrue($cache->set('2', '2'));
|
|
||||||
$this->assertTrue($cache->set('3', '3'));
|
|
||||||
$this->assertEquals(1, $cache->get('1'));
|
|
||||||
$this->assertTrue($cache->set('4', '4'));
|
|
||||||
$this->assertFalse($cache->get('1'));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,19 +39,6 @@ class fileTest extends cacheTestCase
|
|||||||
return $this->_cacheInstance;
|
return $this->_cacheInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
// rewrite testQueue
|
|
||||||
public function testQueue()
|
|
||||||
{
|
|
||||||
$cache = $this->prepare();
|
|
||||||
$this->assertTrue($cache->set('1', '1'));
|
|
||||||
$this->assertTrue($cache->set('2', '2'));
|
|
||||||
$this->assertTrue($cache->set('3', '3'));
|
|
||||||
$this->assertEquals(1, $cache->get('1'));
|
|
||||||
$this->assertTrue($cache->set('4', '4'));
|
|
||||||
$this->assertTrue($cache->set('1', false));
|
|
||||||
$this->assertFalse($cache->get('1'));
|
|
||||||
}
|
|
||||||
|
|
||||||
// skip testExpire
|
// skip testExpire
|
||||||
public function testExpire()
|
public function testExpire()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user