blob: ccdadcfd8d2ca512dfd8fd339b554379d2cdb23b (
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
|
<?php
/**
* Smarty PHPunit tests compiler errors
*
* @author Uwe Tews
*/
/**
* class for compiler tests
*
*
* @preserveGlobalState disabled
*
*
* Problem with total property of {section} and {foreach} in nested loop
*/
class NestedLoopIssue422Test extends PHPUnit_Smarty
{
public function setUp(): void
{
$this->setUpSmarty(__DIR__);
}
public function testnested422()
{
$this->assertEquals('loop: 1inner: 0loop: 2inner: 1', $this->smarty->fetch('422_test.tpl'));
}
}
|