From: axelcl Date: Mon, 19 Dec 2005 20:24:23 +0000 (+0000) Subject: Fix bug #1385272: Parsing of short open tags not fully compatible to PHP parse X-Git-Url: http://git.phpeclipse.com Fix bug #1385272: Parsing of short open tags not fully compatible to PHP parse --- diff --git a/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpdt/core/tests/util/AbstractCompilerTest.java b/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpdt/core/tests/util/AbstractCompilerTest.java index db97728..8659637 100644 --- a/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpdt/core/tests/util/AbstractCompilerTest.java +++ b/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpdt/core/tests/util/AbstractCompilerTest.java @@ -28,6 +28,7 @@ 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; @@ -250,6 +251,29 @@ public class AbstractCompilerTest extends TestCase { } return name; } + protected void checkHTML(String strEval) { + if (Scanner.DEBUG) { + System.out.println("\n------------------------------------"); + System.out.println(strEval); + } + checkParseHTML( + strEval.toCharArray(), + ""); + // parser.phpParserTester(strEval, 1); + } + // private void checkHTML(String strEval) { + // if (Scanner.DEBUG) { + // System.out.println("\n------------------------------------"); + // System.out.println(strEval); + // } + // parser.parse(strEval); + // } + // /** + // * The JUnit setup method + // */ + // protected void setUp() { + // parser = new Parser(null); + // } // public void initialize(CompilerTestSetup setUp) { // this.complianceLevel = setUp.complianceLevel;