|
@@ -50,10 +50,15 @@ class Zend_CurrencyTest extends PHPUnit_Framework_TestCase
|
|
|
public function setUp()
|
|
public function setUp()
|
|
|
{
|
|
{
|
|
|
require_once 'Zend/Cache.php';
|
|
require_once 'Zend/Cache.php';
|
|
|
- $cache = Zend_Cache::factory('Core', 'File',
|
|
|
|
|
|
|
+ $this->_cache = Zend_Cache::factory('Core', 'File',
|
|
|
array('lifetime' => 120, 'automatic_serialization' => true),
|
|
array('lifetime' => 120, 'automatic_serialization' => true),
|
|
|
array('cache_dir' => dirname(__FILE__) . '/_files/'));
|
|
array('cache_dir' => dirname(__FILE__) . '/_files/'));
|
|
|
- Zend_Currency::setCache($cache);
|
|
|
|
|
|
|
+ Zend_Currency::setCache($this->_cache);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public function tearDown()
|
|
|
|
|
+ {
|
|
|
|
|
+ $this->_cache->clean(Zend_Cache::CLEANING_MODE_ALL);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|