blob: ada6c39e78a36671169bc358fe3e6c6208a49f41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
/**
* Smarty PHPunit tests compiler errors
*
* @author Uwe Tews
*/
/**
* class for compiler tests
*
*
* @preserveGlobalState disabled
*
*
* Short syntax of section properties did not work
*/
class SectionPropertiesShortSyntaxIssue428Test extends PHPUnit_Smarty
{
public function setUp(): void
{
$this->setUpSmarty(__DIR__);
}
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'));
}
}
|