Test for issue 419

This commit is contained in:
Uwe Tews
2018-03-16 18:28:49 +01:00
parent cbf7e15e2a
commit a364e82c6b
5 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/**
* Smarty PHPunit tests compiler errors
*
* @package PHPunit
* @author Uwe Tews
*/
/**
* class for compiler tests
*
* @runTestsInSeparateProcess
* @preserveGlobalState disabled
* @backupStaticAttributes enabled
*/
class ExtendsIssue419Test extends PHPUnit_Smarty
{
public function setUp()
{
$this->setUpSmarty(dirname(__FILE__));
}
public function testInit()
{
$this->cleanDirs();
}
public function testextends419()
{
$this->smarty->left_delimiter = '{{';
$this->smarty->right_delimiter = '}}';
$this->assertEquals('child', $this->smarty->fetch('extends:001_parent.tpl|001_child.tpl'));
}
}

View File

@@ -0,0 +1 @@
dummy

View File

@@ -0,0 +1 @@
{{block name='b'}}child{{/block}}

View File

@@ -0,0 +1 @@
{{block name='b'}}parent{{/block}}

View File

@@ -0,0 +1 @@
dummy