Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Cache/ApcCacheTest.php
2013-01-18 17:47:25 +01:00

49 lines
1.1 KiB
PHP

<?php
namespace Alchemy\Tests\Phrasea\Cache;
use Alchemy\Phrasea\Cache\ApcCache;
class ApcCacheTest extends \PHPUnit_Framework_TestCase
{
/**
* @var ApcCache
*/
protected $object;
public function setUp()
{
if ( ! extension_loaded('apc') || ! ini_get('apc.enable_cli')) {
$this->markTestSkipped('Apc is not installed');
}
$this->object = new 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.'
);
}
}