Neos\Flow\Tests\Functional\Aop\FrameworkTest::resultOfGreetObjectMethodIsModifiedByAdvice PHP Method

resultOfGreetObjectMethodIsModifiedByAdvice() public method

    public function resultOfGreetObjectMethodIsModifiedByAdvice()
    {
        $targetClass = $this->objectManager->get(Fixtures\TargetClass01::class);
        $name = new Fixtures\Name('Neos');
        $this->assertSame('Hello, old friend', $targetClass->greetObject($name), 'Aspect should greet with "old friend" if the name property equals "Neos"');
        $name = new Fixtures\Name('Christopher');
        $this->assertSame('Hello, Christopher', $targetClass->greetObject($name));
    }