Skip to content

Commit

Permalink
test for nested blocks
Browse files Browse the repository at this point in the history
smarty parses it, tsmarty2c does not
  • Loading branch information
glensc committed Nov 12, 2017
1 parent 3a383e5 commit 90aaed8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

class ParserTest extends TestCase
{

public function testParseUnknownModifier()
{
$res = $this->parseTemplate(__DIR__ . '/data/modifier.tpl');
Expand Down Expand Up @@ -97,6 +96,14 @@ public function testTranslationWithCondition() {
$this->assertCount(1, $entries);
}

public function testTranslationInArgument() {
$p = $this->parseTemplate(__DIR__ . '/data/translation_in_argument.tpl');
$this->assertNotNull($p);

$entries = $p->getPoFile()->getEntries();
$this->assertCount(1, $entries);
}

/**
* Assert that references are equal to expected
*
Expand Down

0 comments on commit 90aaed8

Please sign in to comment.