Fix #105 + tests

This commit is contained in:
bzick
2014-08-23 11:41:21 +04:00
parent bb8d351e93
commit af7546a8ec
3 changed files with 29 additions and 11 deletions

View File

@ -114,6 +114,7 @@ class TemplateTest extends TestCase
array('hello, {"World"}!', $a, 'hello, World!'),
array('hello, {"W{$a}d"}!', $a, 'hello, WWorldd!'),
array('hello, {$world->chunk(1)->self->chunk("new")}!', $b, 'hello, world!'),
array(':: {Fenom\Helper::method()->page->title} ::', $b, ':: test page ::'),
);
}
@ -1318,7 +1319,7 @@ class TemplateTest extends TestCase
try {
var_dump(
$this->fenom->compileCode(
'{add $a[] = 5}'
'{Fenom\Helper::method()->page->title}'
)->getBody()
);
} catch (\Exception $e) {