mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Fix unit tests for HHVM again
This commit is contained in:
parent
5af2b76fdc
commit
1e0e82193c
1 changed files with 3 additions and 0 deletions
|
|
@ -117,6 +117,7 @@ class CacheTest extends \Codeception\TestCase\Test
|
|||
|
||||
public function testCacheGroups()
|
||||
{
|
||||
Rhymix\Framework\Cache::init(array('type' => 'sqlite'));
|
||||
$prefix = Rhymix\Framework\Cache::getCachePrefix();
|
||||
|
||||
$this->assertTrue(Rhymix\Framework\Cache::set('foobar:subkey:1234', 'rhymix'));
|
||||
|
|
@ -134,6 +135,7 @@ class CacheTest extends \Codeception\TestCase\Test
|
|||
|
||||
public function testGetRealKey()
|
||||
{
|
||||
Rhymix\Framework\Cache::init(array('type' => 'sqlite'));
|
||||
$prefix = Rhymix\Framework\Cache::getCachePrefix();
|
||||
|
||||
$this->assertEquals($prefix . 'foo', Rhymix\Framework\Cache::getRealKey('foo'));
|
||||
|
|
@ -146,6 +148,7 @@ class CacheTest extends \Codeception\TestCase\Test
|
|||
|
||||
public function testCompatibility()
|
||||
{
|
||||
Rhymix\Framework\Cache::init(array('type' => 'sqlite'));
|
||||
$ch = \CacheHandler::getInstance();
|
||||
$this->assertTrue($ch instanceof \CacheHandler);
|
||||
$this->assertTrue($ch->isSupport());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue