Skip to content

Commit

Permalink
add new test validation
Browse files Browse the repository at this point in the history
  • Loading branch information
devajmeireles committed Jan 3, 2024
1 parent bea2a13 commit c24fa55
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/CompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ public function test_it_compiles_server_statement()

$this->assertSame($result, "<?php \$__container->servers(['foo'=>['bar','baz','bah']]); ?>");

$str = <<<'EOL'
@servers([
'foo' => ['bar'],
'bar' => ['baz']
])
EOL;
$compiler = new Compiler();
$result = $compiler->compile($str);

$this->assertSame($result, "<?php \$__container->servers(['foo'=>['bar'],'bar'=>['baz']]); ?>");

$str = <<<'EOL'
@servers(['foo' => 'bar'])
EOL;
Expand Down

0 comments on commit c24fa55

Please sign in to comment.