7351671a2d1261e876c8bdedfeb9ed97cc12fce5
[phpeclipse.git] / net.sourceforge.phpeclipse.tests / src / net / sourceforge / phpeclipse / tests / parser / ShortTagTestCase.java
1 package net.sourceforge.phpeclipse.tests.parser;
2
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;
10
11 /**
12  * Tests the php parser
13  */
14 public class ShortTagTestCase extends AbstractCompilerTest {
15         public ShortTagTestCase(String name) {
16                 super(name);
17         }
18
19         /**
20          * Test the PHP Parser with different PHP short tag snippets
21          */
22         public void testPHPParser() {
23                 checkHTML("<?=$var?>");
24                 checkHTML("<?=\"a\", someOtherPHPCode(); ?>");
25                 checkHTML("<?= \"a\", \"b\" ?> text <?= \"a\", \"b\" ?>");
26         }
27
28 }