Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/php-static-scanner-instrumentalization.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.test86
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