Nelmio\Alice\Generator\Resolver\Parameter\Chainable\ArrayParameterResolverTest::provideContexts PHP Method

provideContexts() public method

public provideContexts ( )
    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;
        })()]];
    }