test '; $this->assertEquals($expected, $this->compiler->compileString($string)); } public function testBreakStatementsWithExpressionAreCompiled() { $string = '@for ($i = 0; $i < 10; $i++) test @break(TRUE) @endfor'; $expected = ' test '; $this->assertEquals($expected, $this->compiler->compileString($string)); } public function testBreakStatementsWithArgumentAreCompiled() { $string = '@for ($i = 0; $i < 10; $i++) test @break(2) @endfor'; $expected = ' test '; $this->assertEquals($expected, $this->compiler->compileString($string)); } public function testBreakStatementsWithSpacedArgumentAreCompiled() { $string = '@for ($i = 0; $i < 10; $i++) test @break( 2 ) @endfor'; $expected = ' test '; $this->assertEquals($expected, $this->compiler->compileString($string)); } public function testBreakStatementsWithFaultyArgumentAreCompiled() { $string = '@for ($i = 0; $i < 10; $i++) test @break(-2) @endfor'; $expected = ' test '; $this->assertEquals($expected, $this->compiler->compileString($string)); } }