Files

31 lines
538 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
*
*/
class ModifierIssue327Test extends PHPUnit_Smarty
{
2021-10-13 12:15:17 +02:00
public function setUp(): void
{
$this->setUpSmarty(__DIR__);
$this->smarty->registerPlugin('modifier', 'substr', 'substr');
}
public function testModifier327()
{
$this->assertEquals('hello you', $this->smarty->fetch('string:{"hello world"|substr:0:-5|cat:"you"}'));
}
}