Moved the code in the "tests" plugin (plural) to the "test" fragment (singular)....
[phpeclipse.git] / net.sourceforge.phpeclipse.test / src / net / sourceforge / phpeclipse / tests / parser / ShortTagTestCase.java
diff --git a/net.sourceforge.phpeclipse.test/src/net/sourceforge/phpeclipse/tests/parser/ShortTagTestCase.java b/net.sourceforge.phpeclipse.test/src/net/sourceforge/phpeclipse/tests/parser/ShortTagTestCase.java
new file mode 100644 (file)
index 0000000..7351671
--- /dev/null
@@ -0,0 +1,28 @@
+package net.sourceforge.phpeclipse.tests.parser;
+
+/*******************************************************************************
+ * Copyright (c) 2002 www.phpeclipse.de All rights
+ * reserved. This program and the accompanying materials are made available
+ * under the terms of the Common Public License v1.0 which accompanies this
+ * distribution, and is available at http://www.eclipse.org/legal/cpl-v10.html
+ ******************************************************************************/
+import net.sourceforge.phpdt.core.tests.util.AbstractCompilerTest;
+
+/**
+ * Tests the php parser
+ */
+public class ShortTagTestCase extends AbstractCompilerTest {
+       public ShortTagTestCase(String name) {
+               super(name);
+       }
+
+       /**
+        * Test the PHP Parser with different PHP short tag snippets
+        */
+       public void testPHPParser() {
+               checkHTML("<?=$var?>");
+               checkHTML("<?=\"a\", someOtherPHPCode(); ?>");
+               checkHTML("<?= \"a\", \"b\" ?> text <?= \"a\", \"b\" ?>");
+       }
+
+}