Nelmio\Alice\Generator\GenerationContextTest::testCanSetAnRetrieveAValueFromTheCache PHP Method

testCanSetAnRetrieveAValueFromTheCache() public method

    public function testCanSetAnRetrieveAValueFromTheCache()
    {
        $context = new GenerationContext();
        $context->cacheValue('foo', $foo = new \stdClass());
        $this->assertSame($foo, $context->getCachedValue('foo'));
    }