Neos\Flow\Tests\Functional\ObjectManagement\Fixtures\Flow175\ClassWithTransitivePrototypeDependency::getTestValue PHP Метод

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

public getTestValue ( )
    public function getTestValue()
    {
        return $this->outer->getInner()->greet('World');
    }

Usage Example

 /**
  * This test verifies the behaviour described in FLOW-175.
  *
  * Please note that this issue occurs ONLY when creating an object
  * with a dependency that itself takes an prototype-scoped object as
  * constructor argument and that dependency was explicitly configured
  * in the package's Objects.yaml.
  *
  * @test
  * @see https://jira.neos.io/browse/FLOW-175
  */
 public function transitivePrototypeDependenciesWithExplicitObjectConfigurationAreConstructedCorrectly()
 {
     $classWithTransitivePrototypeDependency = new ClassWithTransitivePrototypeDependency();
     $this->assertEquals('Hello World!', $classWithTransitivePrototypeDependency->getTestValue());
 }
ClassWithTransitivePrototypeDependency