more php 5.3 syntax fixes

This commit is contained in:
behrooz shabani (everplays) 2016-07-31 12:31:23 +02:00
parent 27898aef88
commit 198faa48d6

View File

@ -1387,15 +1387,15 @@ EOM;
{
return array(array(
'{{#with b}}{{#if this}}{{../a}}{{/if}}{{/with}}',
['a' => 'good', 'b' => 'stump'],
array('a' => 'good', 'b' => 'stump'),
'good',
), array(
'{{#with b}}{{#unless false}}{{../a}}{{/unless}}{{/with}}',
['a' => 'good', 'b' => 'stump'],
array('a' => 'good', 'b' => 'stump'),
'good',
), array(
'{{#with foo}}{{#if goodbye}}GOODBYE cruel {{../world}}!{{/if}}{{/with}}',
['foo' => ['goodbye' => true], 'world' => 'world'],
array('foo' => array('goodbye' => true), 'world' => 'world'),
'GOODBYE cruel world!',
));
}