Neos\Flow\Tests\Functional\ObjectManagement\DependencyInjectionTest::singletonObjectsCanBeInjectedIntoConstructorsOfSingletonObjects PHP Метод

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

    public function singletonObjectsCanBeInjectedIntoConstructorsOfSingletonObjects()
    {
        $objectA = $this->objectManager->get(Fixtures\SingletonClassA::class);
        $objectB = $this->objectManager->get(Fixtures\SingletonClassB::class);
        $this->assertSame($objectB, $objectA->getObjectB());
    }