2020-04-13 15:30:52 +02:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Smarty PHPunit tests compiler errors
|
|
|
|
|
*
|
2023-01-05 23:06:02 +01:00
|
|
|
|
2020-04-13 15:30:52 +02:00
|
|
|
* @author Uwe Tews
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* class for compiler tests
|
|
|
|
|
*
|
2023-01-05 23:06:02 +01:00
|
|
|
*
|
2020-04-13 15:30:52 +02:00
|
|
|
* @preserveGlobalState disabled
|
2023-01-05 23:06:02 +01:00
|
|
|
*
|
2020-04-13 15:30:52 +02:00
|
|
|
*/
|
|
|
|
|
class ExtendsIssue419Test extends PHPUnit_Smarty
|
|
|
|
|
{
|
2021-10-13 12:15:17 +02:00
|
|
|
public function setUp(): void
|
2020-04-13 15:30:52 +02:00
|
|
|
{
|
2022-09-27 13:03:34 +03:00
|
|
|
$this->setUpSmarty(__DIR__);
|
2020-04-13 15:30:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function testInit()
|
|
|
|
|
{
|
|
|
|
|
$this->cleanDirs();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function testextends419()
|
|
|
|
|
{
|
2023-01-09 11:25:09 +01:00
|
|
|
$this->smarty->setLeftDelimiter('{{');
|
|
|
|
|
$this->smarty->setRightDelimiter('}}');
|
2020-04-13 15:30:52 +02:00
|
|
|
$this->assertEquals('child', $this->smarty->fetch('extends:001_parent.tpl|001_child.tpl'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|