String expected = "<?php function foo($b, $c = 5) { $a= 5; $b = 6; $c = 7; } ?>";
parseAndCompare(str, expected, new ICodeManiplator() {
public void manipulate(Program program) {
FunctionDeclaration statement = (FunctionDeclaration) program
.statements().get(0);
statement.formalParameters().remove(0);
}
});
}
public void testDeleteFunctionFormalLast() throws Exception {