Neos\Flow\Tests\Functional\Aop\Fixtures\ChildClassOfTargetClass01::sayHello PHP Метод

sayHello() публичный Метод

public sayHello ( ) : string
Результат string
    public function sayHello()
    {
        return 'Greetings, I just wanted to say: ' . parent::sayHello();
    }

Usage Example

 /**
  * @test
  */
 public function advicesAreExecutedAgainIfAnOverriddenMethodCallsItsParentMethod()
 {
     $targetClass = new Fixtures\ChildClassOfTargetClass01();
     $this->assertEquals('Greetings, I just wanted to say: Hello World World', $targetClass->sayHello());
 }