diff options
Diffstat (limited to 'vendor/nikic/php-parser/test/code/prettyPrinter/expr/docStrings.test')
-rw-r--r-- | vendor/nikic/php-parser/test/code/prettyPrinter/expr/docStrings.test | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/vendor/nikic/php-parser/test/code/prettyPrinter/expr/docStrings.test b/vendor/nikic/php-parser/test/code/prettyPrinter/expr/docStrings.test new file mode 100644 index 0000000..a4a60ac --- /dev/null +++ b/vendor/nikic/php-parser/test/code/prettyPrinter/expr/docStrings.test @@ -0,0 +1,86 @@ +Literals +----- +<?php + +<<<'STR' +STR; +<<<STR +STR; + +<<<'STR' +A +B +STR; +<<<STR +A +B +STR; + +<<<'STR' +a\nb$c +STR; +<<<STR +a\\nb\$c +STR; + +<<<STR +a$b +{$c->d} +STR; + +call( + <<<STR +A +STR + , <<<STR +B +STR +); + +function test() { + <<<STR +Foo +STR; + <<<STR + Bar +STR; +} +----- +<<<'STR' +STR; +<<<STR +STR; +<<<'STR' +A +B +STR; +<<<STR +A +B +STR; +<<<'STR' +a\nb$c +STR; +<<<STR +a\\nb\$c +STR; +<<<STR +a{$b} +{$c->d} +STR; +call(<<<STR +A +STR +, <<<STR +B +STR +); +function test() +{ + <<<STR +Foo +STR; + <<<STR + Bar +STR; +}
\ No newline at end of file |