Skip to content

Commit

Permalink
Test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Feb 11, 2014
1 parent 142aa35 commit 059061f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ext/tests/issue-1998.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--TEST--
Volt: `if` generates a notice when the body is empty - https://github.com/phalcon/cphalcon/issues/1998
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
$volt = new \Phalcon\Mvc\View\Engine\Volt\Compiler();
echo $volt->compileString('{% if true %}{% endif %}' . PHP_EOL);
?>
--EXPECT--
<?php if (true) { ?><?php } ?>

0 comments on commit 059061f

Please sign in to comment.