1436190 - Test additions & refactoring
[phpeclipse.git] / net.sourceforge.phpeclipse.tests / src / net / sourceforge / phpeclipse / phpeditor / php / test / DualParseSyntaxErrorTest.java
index 76d4a10..44df779 100644 (file)
@@ -6,29 +6,8 @@
  */
 package net.sourceforge.phpeclipse.phpeditor.php.test;
 
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.util.Locale;
-
-import net.sourceforge.phpdt.core.compiler.IProblem;
 import net.sourceforge.phpdt.core.tests.util.AbstractCompilerTest;
-import net.sourceforge.phpdt.core.tests.util.Util;
-import net.sourceforge.phpdt.internal.compiler.CompilationResult;
-import net.sourceforge.phpdt.internal.compiler.DefaultErrorHandlingPolicies;
-import net.sourceforge.phpdt.internal.compiler.batch.CompilationUnit;
-import net.sourceforge.phpdt.internal.compiler.env.ICompilationUnit;
-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;
 
-/**
- * @author khartlage
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
 public class DualParseSyntaxErrorTest extends AbstractCompilerTest {
                public static boolean optimizeStringLiterals = false;
                
@@ -146,18 +125,18 @@ public class DualParseSyntaxErrorTest extends AbstractCompilerTest {
                        "       }                                                                               \n"+
                        "}                                                                                      \n";    
 
-               String expectedSyntaxErrorDiagnosis =
-                       "----------\n" + 
-                       "1. ERROR in  (at line 1)\n" + 
-                       "       murks;                                        \n" + 
-                       "       ^^^^^\n" + 
-                       "Parser error \"\'public\' \'private\' or \'protected\' modifier expected for field declarations.\"\n" + 
-                       "----------\n" + 
-                       "2. ERROR in  (at line 1)\n" + 
-                       "       }                                                                                       \n" + 
-                       "       ^\n" + 
-                       "Parser error \"Too many closing \'}\'; end-of-file not reached.\"\n" + 
-                       "----------\n";
+               String expectedSyntaxErrorDiagnosis = "----------\n" 
+                       + "1. ERROR in  (at line 1)\n"
+                       + "     murks;                                        \n" 
+                       + "     ^^^^^^\n"
+                       + "Parser error \"\'public\' \'private\' or \'protected\' modifier expected for field declarations.\"\n" 
+                       + "----------\n"
+//                     + "2. ERROR in  (at line 1)\n"
+//                     + "     }                                                                                       \n" 
+//                     + "     ^\n"
+//                     + "Parser error \"Too many closing \'}\'; end-of-file not reached.\"\n" 
+//                     + "----------\n"
+                       ;
 
                checkParsePHP(
                        s.toCharArray(),