List<FunctionInvocation> invocations = getAllOfType(program,
FunctionInvocation.class);
Assert.assertTrue("Unexpected list size.", invocations.size() == 1);
FunctionInvocation functionInvocation = invocations.get(0);
functionInvocation.parameters().add(ast.newVariable("aaa"));
functionInvocation.parameters().add(ast.newVariable("bbb"));
functionInvocation.parameters().add(ast.newVariable("ccc"));
rewrite();
checkResult("<?php foo($aaa, $bbb, $ccc); ?>");
}