diff options
Diffstat (limited to 'vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class.php')
-rw-r--r-- | vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class.php b/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class.php new file mode 100644 index 0000000..4a02fe1 --- /dev/null +++ b/vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class.php @@ -0,0 +1,15 @@ +<?php +interface foo { +} + +class class_with_method_that_declares_anonymous_class +{ + public function method() + { + $o = new class { public function foo() {} }; + $o = new class{public function foo(){}}; + $o = new class extends stdClass {}; + $o = new class extends stdClass {}; + $o = new class implements foo {}; + } +} |