diff options
Diffstat (limited to 'vendor/phpunit/php-token-stream/tests/_fixture/class_with_multiple_anonymous_classes_and_functions.php')
-rw-r--r-- | vendor/phpunit/php-token-stream/tests/_fixture/class_with_multiple_anonymous_classes_and_functions.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/phpunit/php-token-stream/tests/_fixture/class_with_multiple_anonymous_classes_and_functions.php b/vendor/phpunit/php-token-stream/tests/_fixture/class_with_multiple_anonymous_classes_and_functions.php new file mode 100644 index 0000000..3267ba5 --- /dev/null +++ b/vendor/phpunit/php-token-stream/tests/_fixture/class_with_multiple_anonymous_classes_and_functions.php @@ -0,0 +1,26 @@ +<?php +class class_with_multiple_anonymous_classes_and_functions +{ + public function m() + { + $c = new class { + public function n() { + return true; + } + }; + + $d = new class { + public function o() { + return false; + } + }; + + $f = function ($a, $b) { + return $a + $b; + }; + + $g = function ($a, $b) { + return $a - $b; + }; + } +}
\ No newline at end of file |