From 8ffc5208b884f1fceaa3a89836453bb9ad60fdf2 Mon Sep 17 00:00:00 2001 From: axelcl Date: Mon, 19 Dec 2005 20:24:23 +0000 Subject: [PATCH] Fix bug #1385272: Parsing of short open tags not fully compatible to PHP parse --- .../core/tests/util/AbstractCompilerTest.java | 24 ++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) 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; -- 1.7.1