mirror of
https://github.com/smarty-php/smarty.git
synced 2026-07-05 16:00:55 +02:00
17da1f585e
Fixes #949
16 lines
394 B
PHP
16 lines
394 B
PHP
<?php
|
|
|
|
class TooManyShorthandAttributes949Test extends PHPUnit_Smarty
|
|
{
|
|
|
|
public function testPregMatchAll() {
|
|
$smarty = new \Smarty\Smarty();
|
|
$smarty->registerPlugin('modifier', 'var_dump', 'var_dump');
|
|
$templateStr = "eval:{\$a = 'blah'}{\$b = array()}{if var_dump('', \$a, \$b, 2)|noprint}blah{else}nah{/if}";
|
|
$this->assertEquals(
|
|
'nah',
|
|
$smarty->fetch($templateStr)
|
|
);
|
|
}
|
|
|
|
} |