Skip to content

Commit

Permalink
add hidden test
Browse files Browse the repository at this point in the history
  • Loading branch information
tszyuloveyou authored Aug 29, 2024
1 parent ed2dc3d commit e804971
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/View/Blade/BladeCheckedStatementsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,12 @@ public function testReadonlyStatementsAreCompiled()

$this->assertEquals($expected, $this->compiler->compileString($string));
}

public function testHiddenStatementsAreCompiled()
{
$string = '<input @hidden(name(foo(bar)))/>';
$expected = "<input <?php if(name(foo(bar))): echo 'hidden'; endif; ?>/>";

$this->assertEquals($expected, $this->compiler->compileString($string));
}
}

0 comments on commit e804971

Please sign in to comment.