getBug() . ';' . $command->getParameterWithCarriageReturnAndLineFeed(); } } /** * Class Bug6088 * * Multi-line comments don't work * * @see https://dev.icinga.org/issues/6088 */ class Bug6088Test extends BaseTestCase { public function testWhetherCommandParametersWithMultipleLinesAreProperlyEscaped() { $command = new Bug6088Command(); $renderer = new Bug6088CommandFileCommandRenderer(); $commandString = $renderer->render($command); $this->assertEquals( 'SOLVE_BUG;6088;foo\r\nbar', substr($commandString, strpos($commandString, ' ') + 1), 'Command parameters with multiple lines are not properly escaped' ); } }