Nelmio\Alice\Generator\Resolver\ResolvingContextTest::testStaticFactoryMethodReturnsExistingInstance PHP Method

testStaticFactoryMethodReturnsExistingInstance() public method

    public function testStaticFactoryMethodReturnsExistingInstance()
    {
        $context = ResolvingContext::createFrom(null, 'foo');
        $this->assertTrue($context->has('foo'));
        $newContext = ResolvingContext::createFrom($context, 'ping');
        $this->assertSame($context, $newContext);
        $this->assertTrue($context->has('foo'));
        $this->assertTrue($context->has('ping'));
    }