1 package net.sourceforge.phpeclipse.tests.parser;
3 /*******************************************************************************
4 * Copyright (c) 2002 www.phpeclipse.de All rights
5 * reserved. This program and the accompanying materials are made available
6 * under the terms of the Common Public License v1.0 which accompanies this
7 * distribution, and is available at http://www.eclipse.org/legal/cpl-v10.html
8 ******************************************************************************/
9 import net.sourceforge.phpdt.core.tests.util.AbstractCompilerTest;
12 * Tests the php parser
14 public class ShortTagTestCase extends AbstractCompilerTest {
15 public ShortTagTestCase(String name) {
20 * Test the PHP Parser with different PHP short tag snippets
22 public void testPHPParser() {
23 checkHTML("<?=$var?>");
24 checkHTML("<?=\"a\"; someOtherPHPCode(); ?>");
25 checkHTML("<?= \"a\", \"b\" ?> text <?= \"a\", \"b\" ?>");