test '; $this->assertEquals($expected, $this->compiler->compileString($string)); } public function testNestedWhileStatementsAreCompiled() { $string = '@while ($foo) @while ($bar) test @endwhile @endwhile'; $expected = ' test '; $this->assertEquals($expected, $this->compiler->compileString($string)); } }