improved parser string handling
[phpeclipse.git] / net.sourceforge.phpeclipse.tests / src / net / sourceforge / phpeclipse / tests / parser / PHPParserTestCase.java
index 3bcfbdd..eb0e083 100644 (file)
@@ -19,7 +19,12 @@ public class PHPParserTestCase extends AbstractCompilerTest {
    * Test the PHP Parser with different PHP snippets
    */
   public void testPHPParser() {
-    checkPHP("switch ($aItem[ELM_NAME]) {\r\n" + 
+    checkPHP("$test=\"{4IP}/{$include}\";");
+    checkPHP("$this->mRegex = \"/{$this->mBaseRegex}/{$case}\";");
+    checkPHP("$schema_create .= \" DEFAULT \'$row[Default]\'\";");
+    checkPHP("$stringVar=\"ein normaler $varText\";");
+    checkPHP("$stringVar=\'ein normaler $varText\';");
+    checkPHP("switch ($aItem[ELM_NAME]) {\r\n" +  
                "                case \'channel\':\r\n" + 
                "                    $this->readChannel($aItem);\r\n" + 
                "                    break;\r\n" + 
@@ -32,8 +37,7 @@ public class PHPParserTestCase extends AbstractCompilerTest {
     checkPHP("try {echo $Stream->readAll(); } catch (Exception $e) {\r\n" + 
                "            // Swallow exception\r\n" + 
                "        }");
-    checkPHP("$this->mRegex = \"/{$this->mBaseRegex}/{$case}\";");
-    checkPHP("$schema_create .= \" DEFAULT \'$row[Default]\'\";");
+
     checkHTML("<?php\n"+
             "    function overLib($path = \"\") {\n" + 
                "\n" +