Security update for Core, with self-updated composer
[yaffs-website] / vendor / phpunit / php-token-stream / tests / _fixture / class_with_method_that_declares_anonymous_class2.php
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 (file)
index 0000000..9f3ee28
--- /dev/null
@@ -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;
+       }
+}