public void testStatementBeforeClass() throws Exception {
String str = "<?php $a = 5; class A { } ?>";
String expected = "<?php class A { } ?>";
parseAndCompare(str, expected, new ICodeManiplator() {
public void manipulate(Program program) {
Statement statement = program.statements().get(0);
statement.delete();
}
});
}