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/comments.test')
-rw-r--r--vendor/nikic/php-parser/test/code/prettyPrinter/comments.test67
1 files changed, 67 insertions, 0 deletions
diff --git a/vendor/nikic/php-parser/test/code/prettyPrinter/comments.test b/vendor/nikic/php-parser/test/code/prettyPrinter/comments.test
new file mode 100644
index 0000000..34a9f93
--- /dev/null
+++ b/vendor/nikic/php-parser/test/code/prettyPrinter/comments.test
@@ -0,0 +1,67 @@
+Comments
+-----
+<?php
+
+function justForIndentation()
+{
+ // Some text
+ # Some text
+ /* Some text */
+ /** Some text */
+ /**
+ * Some text.
+ * Some more text.
+ */
+ /*
+ * Some text.
+ * Some more text.
+ */
+ /*
+ Some text.
+ Some more text.
+ */
+ /* Some text.
+ More text. */
+ /* Some text.
+ More text.
+ Even more text. */
+ $foo;
+}
+-----
+function justForIndentation()
+{
+ // Some text
+ # Some text
+ /* Some text */
+ /** Some text */
+ /**
+ * Some text.
+ * Some more text.
+ */
+ /*
+ * Some text.
+ * Some more text.
+ */
+ /*
+ Some text.
+ Some more text.
+ */
+ /* Some text.
+ More text. */
+ /* Some text.
+ More text.
+ Even more text. */
+ $foo;
+}
+-----
+<?php
+
+function test()
+{
+ // empty
+}
+-----
+function test()
+{
+ // empty
+} \ No newline at end of file