Viewing File: /home/ubuntu/code_review/arcanist/src/parser/xhpast/__tests__/data/a-self-test.php.test

<?php

$the_senate = <<<EOTRAGEDY
Did you ever hear the tragedy of Darth Plagueis The Wise? I
thought not. It's not a story the Jedi would tell you. It's a Sith legend.
Darth Plagueis was a Dark Lord of the Sith, so powerful and so wise he could
use the Force to influence the midichlorians to create life... He had such a
knowledge of the dark side that he could even keep the ones he cared about from
dying. The dark side of the Force is a pathway to many abilities some consider
to be unnatural. He became so powerful... the only thing he was afraid of was
losing his power, which eventually, of course, he did. Unfortunately, he taught
his apprentice everything he knew, then his apprentice killed him in his sleep.
Ironic. He could save others from death, but not himself.
EOTRAGEDY;

~~~~~~~~~~
pass
~~~~~~~~~~
* n_PROGRAM
 * n_STATEMENT_LIST
  * n_OPEN_TAG
   > <?php
  > "\n\n"
  * n_STATEMENT
   * n_BINARY_EXPRESSION
    * n_VARIABLE
     > $the_senate
    > " "
    * n_OPERATOR
     > =
    > " "
    * n_HEREDOC
     > "<<<EOTRAGEDY\nDid you ever hear the tragedy of Darth Plagueis The Wise?"
     . " I\nthought not. It's not a story the Jedi would tell you. It's a Sith "
     . "legend.\nDarth Plagueis was a Dark Lord of the Sith, so powerful and so"
     . " wise he could\nuse the Force to influence the midichlorians to create "
     . "life... He had such a\nknowledge of the dark side that he could even ke"
     . "ep the ones he cared about from\ndying. The dark side of the Force is a"
     . " pathway to many abilities some consider\nto be unnatural. He became so"
     . " powerful... the only thing he was afraid of was\nlosing his power, whi"
     . "ch eventually, of course, he did. Unfortunately, he taught\nhis apprent"
     . "ice everything he knew, then his apprentice killed him in his sleep.\nI"
     . "ronic. He could save others from death, but not himself.\nEOTRAGEDY"
   > ;
 > "\n\n"
Back to Directory File Manager