mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
54 lines
1.1 KiB
PHP
54 lines
1.1 KiB
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
|
|
|
/**
|
|
* Test class for ApcCache.
|
|
* Generated by PHPUnit on 2012-02-21 at 16:39:56.
|
|
*/
|
|
class ApcCacheTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
|
|
/**
|
|
* @var ApcCache
|
|
*/
|
|
protected $object;
|
|
|
|
public function setUp()
|
|
{
|
|
if (extension_loaded('apc'))
|
|
{
|
|
$this->markTestSkipped('Apc is not installed');
|
|
}
|
|
$this->object = new \Alchemy\Phrasea\Cache\ApcCache;
|
|
}
|
|
|
|
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.'
|
|
);
|
|
}
|
|
|
|
}
|
|
|