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