You are here

public function Test::methodOne in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php \Test::methodOne()

File

vendor/phpunit/php-token-stream/tests/_fixture/class_with_method_that_declares_anonymous_class2.php, line 3

Class

Test

Code

public function methodOne() {
  $foo = new class {
    public function method_in_anonymous_class() {
      return true;
    }

  };
  return $foo
    ->method_in_anonymous_class();
}