mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
Test for issue 419
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
}
|
1
tests/UnitTests/TemplateSource/_Issues/419/cache/dummy.txt
vendored
Normal file
1
tests/UnitTests/TemplateSource/_Issues/419/cache/dummy.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
dummy
|
@@ -0,0 +1 @@
|
||||
{{block name='b'}}child{{/block}}
|
@@ -0,0 +1 @@
|
||||
{{block name='b'}}parent{{/block}}
|
@@ -0,0 +1 @@
|
||||
dummy
|
Reference in New Issue
Block a user