Files
smarty/tests/UnitTests/CacheResourceTests/Memcache/CacheResourceCustomMemcacheTest.php
T

51 lines
1.3 KiB
PHP
Raw Normal View History

2015-05-04 03:00:52 +02:00
<?php
/**
* Smarty PHPunit tests for cache resource memcache
*
* @package PHPunit
* @author Uwe Tews
*/
if (MemCacheEnable == true) {
2015-05-04 03:00:52 +02:00
include_once __DIR__ . '/../_shared/CacheResourceTestCommon.php';
2015-05-04 03:00:52 +02:00
/**
* class for cache resource memcache tests
2015-05-04 03:00:52 +02:00
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
2015-05-04 03:00:52 +02:00
*/
class CacheResourceCustomMemcacheTest extends CacheResourceTestCommon
2015-05-04 03:00:52 +02:00
{
/**
* Sets up the fixture
* This method is called before a test is executed.
*
*/
public function setUp()
{
if (MemCacheEnable != true) {
$this->markTestSkipped('Memcache tests are disabled');
} else {
if (!class_exists('Memcache')) {
$this->markTestSkipped('Memcache not available');
}
2015-05-04 03:00:52 +02:00
}
$this->setUpSmarty(__DIR__);
parent::setUp();
$this->smarty->setCachingType('memcachetest');
2015-05-04 03:00:52 +02:00
}
public function testInit()
{
$this->cleanDirs();
}
2015-05-04 03:00:52 +02:00
protected function doClearCacheAssertion($a, $b)
{
$this->assertEquals(- 1, $b);
}
2015-05-04 03:00:52 +02:00
}
}