String expected = "<?php $foo($a, 's<>&', true, __CLASS__); ?>";
parseAndCompare(str, expected, new ICodeManiplator() {
public void manipulate(Program program) {
ExpressionStatement statement = (ExpressionStatement) program
.statements().get(0);
FunctionInvocation functionInvocation = (FunctionInvocation) statement
.getExpression();
functionInvocation.parameters().remove(2);
}
});
}