public function provideContexts() { return ['no context' => [null, new ResolvingContext('array_param')], 'context that does not contain the parameter being resolved' => [new ResolvingContext('unrelated'), (function () { $context = new ResolvingContext('unrelated'); $context->add('array_param'); return $context; })()], 'context that contains the parameter being resolved' => [(function () { $context = new ResolvingContext('unrelated'); $context->add('array_param'); return $context; })(), (function () { $context = new ResolvingContext('unrelated'); $context->add('array_param'); return $context; })()]]; }