import net.sourceforge.phpdt.internal.compiler.batch.CompilationUnit;
import net.sourceforge.phpdt.internal.compiler.env.ICompilationUnit;
import net.sourceforge.phpdt.internal.compiler.impl.CompilerOptions;
+import net.sourceforge.phpdt.internal.compiler.parser.Scanner;
import net.sourceforge.phpdt.internal.compiler.parser.UnitParser;
import net.sourceforge.phpdt.internal.compiler.problem.DefaultProblem;
import net.sourceforge.phpdt.internal.compiler.problem.DefaultProblemFactory;
}
return name;
}
+
+ protected void checkPHP(String strEval) {
+ checkPHP(strEval,"");
+ }
+ protected void checkPHP(String strEval, String expectedSyntaxErrorDiagnosis ) {
+ if (Scanner.DEBUG) {
+ System.out.println("\n------------------------------------");
+ System.out.println(strEval);
+ }
+ checkParsePHP(strEval.toCharArray(), expectedSyntaxErrorDiagnosis);
+ }
-// public void initialize(CompilerTestSetup setUp) {
-// this.complianceLevel = setUp.complianceLevel;
-// }
+ protected void checkHTML(String strEval) {
+ if (Scanner.DEBUG) {
+ System.out.println("\n------------------------------------");
+ System.out.println(strEval);
+ }
+ checkParseHTML(
+ strEval.toCharArray(),
+ "");
+ }
}