public function testIssue18()
{
$jade = <<<JADE
- if (\$something):
p Do something
- endif;
- if (\$something && \$somethingElse) {
p Do some random stuff
- }
-
if (\$something && \$somethingElse) {
echo "No jade handling here";
}
\$array = ["a","b"
"c", "d",
"e", "f",
"g",
"h"];
p and it goes on normally...
JADE;
$this->assertEquals('<?php if ($something):?><p>Do something</p><?php endif;?><?php if ($something && $somethingElse) {?><p>Do some random stuff</p><?php }?><?php if ($something && $somethingElse) {echo "No jade handling here"; } $array = ["a","b""c", "d","e", "f", "g", "h"];?><p>and it goes on normally...</p>', $this->_renderer->compile($jade));
}