mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-08 00:01:38 +01:00
36 lines
601 B
PHP
36 lines
601 B
PHP
<?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 testInit()
|
|
{
|
|
$this->cleanDirs();
|
|
}
|
|
|
|
public function testnested422()
|
|
{
|
|
$this->assertEquals('loop: 1inner: 0loop: 2inner: 1', $this->smarty->fetch('422_test.tpl'));
|
|
}
|
|
|
|
}
|