Neos\Flow\Tests\Functional\Aop\Fixtures\TargetClass01::sayHello PHP Method

sayHello() public method

public sayHello ( ) : string
return string
    public function sayHello()
    {
        return 'Hello';
    }

Usage Example

 /**
  * @test
  */
 public function introducedTraitMethodWontOverrideExistingMethods()
 {
     $targetClass = new Fixtures\TargetClass01();
     $this->assertNotEquals('Hello from trait', $targetClass->sayHello());
     $this->assertEquals('Hello World', $targetClass->sayHello());
 }