Package org.eclipse.php.internal.core.ast.nodes

Examples of org.eclipse.php.internal.core.ast.nodes.EchoStatement


  public void testDeleteEchoFirst() throws Exception {
    String str = "<?php echo $a, $b , $c; ?>";
    String expected = "<?php echo $b , $c; ?>";
    parseAndCompare(str, expected, new ICodeManiplator() {
      public void manipulate(Program program) {
        EchoStatement statement = (EchoStatement) program.statements()
            .get(0);
        statement.expressions().remove(0);
      }
    });
  }
View Full Code Here


  public void testDeleteEchoLast() throws Exception {
    String str = "<?php echo $a, $b , $c; ?>";
    String expected = "<?php echo $a, $b; ?>";
    parseAndCompare(str, expected, new ICodeManiplator() {
      public void manipulate(Program program) {
        EchoStatement statement = (EchoStatement) program.statements()
            .get(0);
        statement.expressions().remove(2);
      }
    });
  }
View Full Code Here

  public void testDeleteEchoMiddle() throws Exception {
    String str = "<?php echo $a, $b , $c; ?>";
    String expected = "<?php echo $a, $c; ?>";
    parseAndCompare(str, expected, new ICodeManiplator() {
      public void manipulate(Program program) {
        EchoStatement statement = (EchoStatement) program.statements()
            .get(0);
        statement.expressions().remove(1);
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.ast.nodes.EchoStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.