Skip to content

Commit 5e35a7c

Browse files
committed
Add failing test (todo: fix)
1 parent 34a1e96 commit 5e35a7c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/RegressionTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,17 @@ public static function issueProvider(): array
13361336
'expected' => 'ECHO: ECHO: foobar(moo).',
13371337
],
13381338

1339+
[
1340+
'id' => 367,
1341+
'template' => '{{#each (myfunc \'foo(bar)\' ) }}{{.}},{{/each}}',
1342+
'options' => new Options(
1343+
helpers: [
1344+
'myfunc' => fn($arg) => explode('(', $arg),
1345+
],
1346+
),
1347+
'expected' => 'foo,bar),',
1348+
],
1349+
13391350
[
13401351
'id' => 369,
13411352
'template' => '{{#each paragraphs}}<p>{{this}}</p>{{else}}<p class="empty">{{foo}}</p>{{/each}}',

0 commit comments

Comments
 (0)