From 2aafd538d268686e00aac2002d8939699d784a7d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 5 May 2016 16:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../library/think/cache/driver/cacheTestCase.php | 10 ---------- .../library/think/cache/driver/fileTest.php | 15 +-------------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/tests/thinkphp/library/think/cache/driver/cacheTestCase.php b/tests/thinkphp/library/think/cache/driver/cacheTestCase.php index 75ecc816..ff123c13 100644 --- a/tests/thinkphp/library/think/cache/driver/cacheTestCase.php +++ b/tests/thinkphp/library/think/cache/driver/cacheTestCase.php @@ -160,14 +160,4 @@ abstract class cacheTestCase extends \PHPUnit_Framework_TestCase $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')); - } } diff --git a/tests/thinkphp/library/think/cache/driver/fileTest.php b/tests/thinkphp/library/think/cache/driver/fileTest.php index 91cfab4f..aee0bd46 100644 --- a/tests/thinkphp/library/think/cache/driver/fileTest.php +++ b/tests/thinkphp/library/think/cache/driver/fileTest.php @@ -25,7 +25,7 @@ class fileTest extends cacheTestCase */ protected function setUp() { - \think\Cache::connect(['type' => 'File', 'path'=> CACHE_PATH]); + \think\Cache::connect(['type' => 'File', 'path' => CACHE_PATH]); } /** @@ -39,19 +39,6 @@ class fileTest extends cacheTestCase 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 public function testExpire() {