mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-08 08:11:39 +01:00
36 lines
616 B
PHP
36 lines
616 B
PHP
<?php
|
|
/**
|
|
* Smarty PHPunit tests compiler errors
|
|
*
|
|
|
|
* @author Uwe Tews
|
|
*/
|
|
|
|
/**
|
|
* class for compiler tests
|
|
*
|
|
*
|
|
* @preserveGlobalState disabled
|
|
*
|
|
*/
|
|
class ExtendsIssue419Test extends PHPUnit_Smarty
|
|
{
|
|
public function setUp(): void
|
|
{
|
|
$this->setUpSmarty(__DIR__);
|
|
}
|
|
|
|
public function testInit()
|
|
{
|
|
$this->cleanDirs();
|
|
}
|
|
|
|
public function testextends419()
|
|
{
|
|
$this->smarty->setLeftDelimiter('{{');
|
|
$this->smarty->setRightDelimiter('}}');
|
|
$this->assertEquals('child', $this->smarty->fetch('extends:001_parent.tpl|001_child.tpl'));
|
|
}
|
|
|
|
}
|