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

thisIsSupportedInMethodRuntimeCondition() public method

    public function thisIsSupportedInMethodRuntimeCondition()
    {
        $targetClass = $this->objectManager->get(Fixtures\TargetClass01::class);
        $name = new Fixtures\Name('Fusion');
        $targetClass->setCurrentName($name);
        $this->assertSame('Hello, you', $targetClass->greetObject($name), 'Aspect should greet with "you" if the current name equals the name argument');
        $name = new Fixtures\Name('Christopher');
        $targetClass->setCurrentName(null);
        $this->assertSame('Hello, Christopher', $targetClass->greetObject($name), 'Aspect should greet with given name if the current name is not equal to the name argument');
    }