summaryrefslogtreecommitdiff
path: root/tests/UnitTests/TemplateSource/_Issues/TooManyShorthandAttributes949Test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UnitTests/TemplateSource/_Issues/TooManyShorthandAttributes949Test.php')
-rw-r--r--tests/UnitTests/TemplateSource/_Issues/TooManyShorthandAttributes949Test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/UnitTests/TemplateSource/_Issues/TooManyShorthandAttributes949Test.php b/tests/UnitTests/TemplateSource/_Issues/TooManyShorthandAttributes949Test.php
index cfe55752..50f16a28 100644
--- a/tests/UnitTests/TemplateSource/_Issues/TooManyShorthandAttributes949Test.php
+++ b/tests/UnitTests/TemplateSource/_Issues/TooManyShorthandAttributes949Test.php
@@ -4,12 +4,12 @@ class TooManyShorthandAttributes949Test extends PHPUnit_Smarty
{
public function testPregMatchAll() {
- $smarty = new \Smarty\Smarty();
- $smarty->registerPlugin('modifier', 'var_dump', 'var_dump');
+ $this->setUpSmarty(__DIR__);
+ $this->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)
+ $this->smarty->fetch($templateStr)
);
}