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-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php')
-rw-r--r--vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php b/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php
new file mode 100644
index 0000000..9f3ee28
--- /dev/null
+++ b/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php
@@ -0,0 +1,16 @@
+<?php
+class Test {
+ public function methodOne() {
+ $foo = new class {
+ public function method_in_anonymous_class() {
+ return true;
+ }
+ };
+
+ return $foo->method_in_anonymous_class();
+ }
+
+ public function methodTwo() {
+ return false;
+ }
+}