Update extends test

This commit is contained in:
uwetews
2015-12-25 08:48:25 +01:00
parent 6b9648a1dc
commit 3d4fbb88c6
2 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ class ExtendsResourceTest extends PHPUnit_Smarty
$this->smarty->registerFilter('pre', array($this, 'compiledPrefilter')); $this->smarty->registerFilter('pre', array($this, 'compiledPrefilter'));
$this->smarty->assign('test', $testNumber); $this->smarty->assign('test', $testNumber);
$this->smarty->caching = $caching; $this->smarty->caching = $caching;
$this->smarty->inheritance_merge_compiled_includes = $merge; $this->smarty->merge_compiled_includes = $merge;
if ($merge) { if ($merge) {
$this->smarty->compile_id = 1; $this->smarty->compile_id = 1;
} }
@@ -61,7 +61,7 @@ class ExtendsResourceTest extends PHPUnit_Smarty
$this->smarty->registerFilter('pre', array($this, 'compiledPrefilter')); $this->smarty->registerFilter('pre', array($this, 'compiledPrefilter'));
$this->smarty->assign('test', $testNumber); $this->smarty->assign('test', $testNumber);
$this->smarty->caching = $caching; $this->smarty->caching = $caching;
$this->smarty->inheritance_merge_compiled_includes = $merge; $this->smarty->merge_compiled_includes = $merge;
if ($merge) { if ($merge) {
$this->smarty->compile_id = 1; $this->smarty->compile_id = 1;
} }
@@ -81,7 +81,7 @@ class ExtendsResourceTest extends PHPUnit_Smarty
$this->smarty->registerFilter('pre', array($this, 'compiledPrefilter')); $this->smarty->registerFilter('pre', array($this, 'compiledPrefilter'));
$this->smarty->assign('test', $testNumber); $this->smarty->assign('test', $testNumber);
$this->smarty->caching = $caching; $this->smarty->caching = $caching;
$this->smarty->inheritance_merge_compiled_includes = $merge; $this->smarty->merge_compiled_includes = $merge;
if ($merge) { if ($merge) {
$this->smarty->compile_id = 1; $this->smarty->compile_id = 1;
} }

View File

@@ -642,7 +642,7 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
/** /**
* @expectedException SmartyException * @expectedException SmartyException
* @expectedExceptionMessage tag {$smarty.block.parent} used in parent template * @expectedExceptionMessage illegal {$smarty.block.parent}
* test {$this->smarty.block.parent} in parent template * test {$this->smarty.block.parent} in parent template
*/ */
public function testSmartyBlockParentInParent_027() public function testSmartyBlockParentInParent_027()