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

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

public saySomethingSmart ( ) : string
Результат string
    public function saySomethingSmart()
    {
        return parent::saySomethingSmart() . ' That was smart, eh?';
    }

Usage Example

 /**
  * @test
  */
 public function anAdvicedParentMethodIsCalledCorrectlyIfANonAdvicedOverridingMethodCallsIt()
 {
     $targetClass = new Fixtures\ChildClassOfTargetClass01();
     $this->assertEquals('Two plus two makes five! For big twos and small fives! That was smart, eh?', $targetClass->saySomethingSmart());
 }