X-Git-Url: http://git.phpeclipse.com 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 8659637..c334f5f 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 @@ -251,6 +251,18 @@ public class AbstractCompilerTest extends TestCase { } 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); + } + protected void checkHTML(String strEval) { if (Scanner.DEBUG) { System.out.println("\n------------------------------------"); @@ -259,23 +271,5 @@ public class AbstractCompilerTest extends TestCase { 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; -// } }