- '$messages'=>array(\r
- array('new'=>true, 'text'=>'new message'),\r
- array('new'=>false, 'text'=>'old message'))));\r
- \r
- $this->assertEquals('new messages: new message old message', $text);\r
- }
-
- public function testFantasy() {\r
- $tpl='Fantasy: {{fantasy $messages}}';\r
-\r
- $text=replace_macros($tpl, array('$messages'=>'no no'));\r
-\r
- $this->assertEquals('Fantasy: {{fantasy no no}}', $text);\r
- }
-
- public function testInc() {\r
- $tpl='{{inc field_input.tpl with $field=$myvar}}{{ endinc }}';\r
-\r
- $text=replace_macros($tpl, array('$myvar'=>array('myfield', 'label', 'value', 'help')));\r
-\r
+ '$messages'=>array(
+ array('new'=>true, 'text'=>'new message'),
+ array('new'=>false, 'text'=>'old message'))));
+
+ $this->assertEquals('new messages: new message old message', $text);
+ }
+
+ public function testFantasy() {
+ $tpl='Fantasy: {{fantasy $messages}}';
+
+ $text=replace_macros($tpl, array('$messages'=>'no no'));
+
+ $this->assertEquals('Fantasy: {{fantasy no no}}', $text);
+ }
+
+ public function testInc() {
+ $tpl='{{inc field_input.tpl with $field=$myvar}}{{ endinc }}';
+
+ $text=replace_macros($tpl, array('$myvar'=>array('myfield', 'label', 'value', 'help')));
+