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

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php')
-rw-r--r--vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php b/vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php
new file mode 100644
index 0000000..19dd4cd
--- /dev/null
+++ b/vendor/phpunit/php-code-coverage/tests/_files/source_with_oneline_annotations.php
@@ -0,0 +1,36 @@
+<?php
+
+/** Docblock */
+interface Foo
+{
+ public function bar();
+}
+
+class Foo
+{
+ public function bar()
+ {
+ }
+}
+
+function baz()
+{
+ // a one-line comment
+ print '*'; // a one-line comment
+
+ /* a one-line comment */
+ print '*'; /* a one-line comment */
+
+ /* a one-line comment
+ */
+ print '*'; /* a one-line comment
+ */
+
+ print '*'; // @codeCoverageIgnore
+
+ print '*'; // @codeCoverageIgnoreStart
+ print '*';
+ print '*'; // @codeCoverageIgnoreEnd
+
+ print '*';
+}