Examples of EchoStatement


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

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

  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

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

  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
Copyright © 2018 www.massapi.com. 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.