mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Refactor Cache services
This commit is contained in:
53
lib/unitTest/Alchemy/Phrasea/Cache/ArrayCacheTest.php
Normal file
53
lib/unitTest/Alchemy/Phrasea/Cache/ArrayCacheTest.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||
|
||||
/**
|
||||
* Test class for ArrayCache.
|
||||
* Generated by PHPUnit on 2012-02-21 at 16:37:10.
|
||||
*/
|
||||
class ArrayCacheTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ArrayCache
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
/**
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
* This method is called before a test is executed.
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
$this->object = new \Alchemy\Phrasea\Cache\ArrayCache;
|
||||
}
|
||||
|
||||
public function testIsServer()
|
||||
{
|
||||
$this->assertTrue(is_bool($this->object->isServer()));
|
||||
}
|
||||
|
||||
public function testGetStats()
|
||||
{
|
||||
$this->assertTrue(is_array($this->object->getStats()) || is_null($this->object->getStats()));
|
||||
}
|
||||
|
||||
public function testGet()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
public function testDeleteMulti()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user