Fix #1368081: First suggestion in #1368081 seems to be working better
[phpeclipse.git] / net.sourceforge.phpeclipse.tests / src / net / sourceforge / phpeclipse / tests / parser / PHPParserTestCase.java
index c2ba473..ff9c420 100644 (file)
@@ -23,6 +23,8 @@ public class PHPParserTestCase extends AbstractCompilerTest {
         */
        public void testPHPParser() {
                // checkPHP("i=10;"); // should get an error !
+               checkPHP("$y=self::$x->huba;");
+               checkPHP("self::x()->set();");
                checkPHP("$test=\"{4IP}/{$include}\";");
                checkPHP("$this->mRegex = \"/{$this->mBaseRegex}/{$case}\";");
                checkPHP("$schema_create .= \" DEFAULT \'$row[Default]\'\";");
@@ -221,25 +223,13 @@ public class PHPParserTestCase extends AbstractCompilerTest {
                // parser.phpParserTester(strEval, 1);
        }
 
-       private 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);
-       // }
+//     private void checkHTML(String strEval) {
+//             if (Scanner.DEBUG) {
+//                     System.out.println("\n------------------------------------");
+//                     System.out.println(strEval);
+//             }
+//             checkParseHTML(strEval.toCharArray(), "");
+//             // parser.phpParserTester(strEval, 1);
+//     }
+
 }