diff options
Diffstat (limited to 'tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.apctest.php')
| -rw-r--r-- | tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.apctest.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.apctest.php b/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.apctest.php deleted file mode 100644 index 38b061dc..00000000 --- a/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.apctest.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -use Smarty\Smarty; -use Smarty\Template; -use Smarty\Template\Cached; - -require_once __DIR__ . '/../../../__shared/cacheresources/cacheresource.apc.php'; - -class Smarty_CacheResource_Apctest extends Smarty_CacheResource_Apc -{ - public $lockTime = 0; - - public function hasLock(Smarty $smarty, Cached $cached) - { - if ($this->lockTime) { - $this->lockTime--; - if (!$this->lockTime) { - $this->releaseLock($smarty, $cached); - } - } - return parent::hasLock($smarty, $cached); - } - - public function get(Template $_template) - { - $this->contents = array(); - $this->timestamps = array(); - $t = $this->getContent($_template); - - return $t ? $t : null; - } - -} |
