Added Constants for the new PartitionScanner
[phpeclipse.git] / net.sourceforge.phpeclipse / src / test / PHPParserTestCase2.java
index 6d0457d..d921054 100644 (file)
@@ -29,6 +29,23 @@ public class PHPParserTestCase2 extends TestCase {
    *  Test the PHP Parser with different PHP snippets
    */
   public void testPHPParser() {
+    checkHTML("<?php  $a = &$b; ?>");
+    checkHTML("<?php ec ho 'coucou'; ?>" +
+              "\n dfgdfgfdfg" +
+              "\n" +
+              "\n" +
+              "<?php" +
+              "\necho ' caca';" +
+              "\n?>" +
+              "dfgdfg" +
+              "\ndsfgdf");
+    checkHTML("<?php echo 'coucou'; ?>" +
+              "\n dfgdfgfdfg" +
+              "\n" +
+              "\n" +
+              "<?php" +
+              "\necho ' caca';" +
+              "\n?>");
     checkHTML("<?php" +
               "\n//if (!isset($AtreidesLanguage)) $AtreidesLanguage='french';" +
               "\n$AtreidesLanguage='french';" +