blob: c9ba0d264326cd115e7d9dd05ea1c3348443b9d4 (
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
|
<?php
/**
* Smarty PHPunit tests compiler errors
*
* @author Uwe Tews
*/
/**
* class for compiler tests
*
*
* @preserveGlobalState disabled
*
*/
class ModifierIssue327Test extends PHPUnit_Smarty
{
public function setUp(): void
{
$this->setUpSmarty(__DIR__);
$this->smarty->registerPlugin('modifier', 'substr', 'substr');
}
public function testInit()
{
$this->cleanDirs();
}
public function testModifier327()
{
$this->assertEquals('hello you', $this->smarty->fetch('string:{"hello world"|substr:0:-5|cat:"you"}'));
}
}
|