mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
clear static tag compiler object cache
This commit is contained in:
@@ -77,7 +77,8 @@ class PHPUnit_Smarty extends PHPUnit_Framework_TestCase
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $backupStaticAttributesBlacklist = array('PHPUnit_Smarty' => array('config', 'pdo', 'init', 'testNumver'),);
|
||||
protected $backupStaticAttributesBlacklist = array('PHPUnit_Smarty' => array('config', 'pdo', 'init',
|
||||
'testNumver'),);
|
||||
|
||||
/**
|
||||
* This method is called before the first test of this test class is run.
|
||||
@@ -622,6 +623,11 @@ KEY `expire` (`expire`)
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
if (class_exists('Smarty_Internal_TemplateCompilerBase') &&
|
||||
isset(Smarty_Internal_TemplateCompilerBase::$_tag_objects)
|
||||
) {
|
||||
Smarty_Internal_TemplateCompilerBase::$_tag_objects = array();
|
||||
}
|
||||
if (isset($this->smarty->smarty)) {
|
||||
$this->smarty->smarty = null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user