Files

43 lines
823 B
PHP
Raw Permalink Normal View History

<?php
/**
* Smarty PHPunit tests compiler errors
*
2023-08-08 00:04:14 +02:00
* @author Uwe Tews
*/
/**
* class for compiler tests
*
2023-08-08 00:04:14 +02:00
*
* @preserveGlobalState disabled
2023-08-08 00:04:14 +02:00
*
*
* Short syntax of section properties did not work
*/
class SectionPropertiesShortSyntaxIssue428Test extends PHPUnit_Smarty
{
2021-10-13 12:15:17 +02:00
public function setUp(): void
{
$this->setUpSmarty(__DIR__);
}
public function testInit()
{
$this->cleanDirs();
}
public function testSection_001()
{
$this->smarty->assign('foo', array('a', 'b', 'c'));
$this->assertEquals('abc', $this->smarty->fetch('001_section.tpl'));
}
public function testSection_002()
{
$this->smarty->assign('foo', array('a', 'b', 'c'));
$this->assertEquals('abc', $this->smarty->fetch('002_section.tpl'));
}
}