mirror of
https://github.com/smarty-php/smarty.git
synced 2026-08-10 23:41:23 +02:00
47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Smarty PHPunit tests for cache resource memcache
|
|
*
|
|
* @package PHPunit
|
|
* @author Uwe Tews
|
|
*/
|
|
if (MemCacheEnable == true) {
|
|
|
|
include_once dirname(__FILE__) . '/../_shared/CacheResourceTestCommon.php';
|
|
|
|
/**
|
|
* class for cache resource memcache tests
|
|
*
|
|
* @runTestsInSeparateProcess
|
|
* @preserveGlobalState disabled
|
|
* @backupStaticAttributes enabled
|
|
*/
|
|
class CacheResourceCustomMemcacheTest extends CacheResourceTestCommon
|
|
{
|
|
/**
|
|
* 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');
|
|
}
|
|
$this->setUpSmarty(dirname(__FILE__));
|
|
parent::setUp();
|
|
$this->smarty->setCachingType('memcachetest');
|
|
}
|
|
|
|
public function testInit()
|
|
{
|
|
$this->cleanDirs();
|
|
}
|
|
|
|
protected function doClearCacheAssertion($a, $b)
|
|
{
|
|
$this->assertEquals(- 1, $b);
|
|
}
|
|
}
|
|
}
|