import net.sourceforge.phpdt.core.compiler.IProblem;
import net.sourceforge.phpdt.internal.compiler.CompilationResult;
import net.sourceforge.phpdt.internal.compiler.DefaultErrorHandlingPolicies;
+import net.sourceforge.phpdt.internal.compiler.ast.CompilationUnitDeclaration;
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;
import net.sourceforge.phpdt.internal.compiler.problem.ProblemReporter;
-import net.sourceforge.phpeclipse.internal.compiler.ast.CompilationUnitDeclaration;
//import net.sourceforge.phpdt.core.tests.junit.extension.TestCase;
//import net.sourceforge.phpdt.internal.compiler.impl.CompilerOptions;
}
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(),
+ "");
+ }
}