X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpeclipse/phpeditor/php/test/DualParseSyntaxErrorTest.java b/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpeclipse/phpeditor/php/test/DualParseSyntaxErrorTest.java index 088c75a..09830f3 100644 --- a/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpeclipse/phpeditor/php/test/DualParseSyntaxErrorTest.java +++ b/net.sourceforge.phpeclipse.tests/src/net/sourceforge/phpeclipse/phpeditor/php/test/DualParseSyntaxErrorTest.java @@ -95,7 +95,16 @@ public class DualParseSyntaxErrorTest extends AbstractCompilerTest { } public void test01() { String s = - " "; + "final class test {\n" + + "\n" + + "private function f1() {\n" + + "\n" + + "}\n" + + "public function f2() {\n" + + "\n" + + " \n" + + "} \n" + + "}"; String expectedSyntaxErrorDiagnosis = ""; @@ -126,24 +135,14 @@ public class DualParseSyntaxErrorTest extends AbstractCompilerTest { public void test97() { String s = - "class class { \n"+ + "class momo { \n"+ " function &fetchRow($result, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum=null) \n"+ " { \n"+ " } \n"+ "} \n"; String expectedSyntaxErrorDiagnosis = - "----------\n" + - "1. ERROR in (at line 1)\n" + - " class class { \n" + - " ^^^^^\n" + - "Parse error \"Don\'t use keyword for class declaration [class].\"\n" + - "----------\n" + - "2. ERROR in (at line 1)\n" + - " class class { \n" + - " ^\n" + - "Parse error \"Class name expected after keyword \'class\'.\"\n" + - "----------\n"; + ""; checkParse( s.toCharArray(),