Files

36 lines
601 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
*
*
* Problem with total property of {section} and {foreach} in nested loop
*/
class NestedLoopIssue422Test 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 testnested422()
{
$this->assertEquals('loop: 1inner: 0loop: 2inner: 1', $this->smarty->fetch('422_test.tpl'));
}
}