Commit b8495654 by Seldaek

git-svn-id: svn://dwoo.org/dwoo/trunk@96 0598d79b-80c4-4d41-97ba-ac86fbbd088b

parent a19f48d3
......@@ -4,6 +4,8 @@
operator inside it
+ Added line numbers in compilation errors and improved several error messages
* Plugins: added a fourth 'bool $case_sensitive' parameter to {replace}
* Plugins: added a fourth 'bool $trim' parameter to {capture} that trims
the captured text
* Fixed compiler bug that prevented empty() to be called
* Fixed several modifier parsing bugs
=> http://forum.dwoo.org/viewtopic.php?id=27
......
......@@ -69,4 +69,12 @@ class BugTests extends PHPUnit_Framework_TestCase
$this->assertEquals("fooxx", $this->dwoo->get($tpl, array()));
}
public function testPhpTagWithoutSemicolon()
{
$tpl = new Dwoo_Template_String('{capture "foo"}<?php $var=3; echo $var ?>{/capture}-{$.capture.foo}');
$tpl->forceCompilation();
$this->assertEquals("-3", $this->dwoo->get($tpl, array()));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment