Nelmio\Alice\Generator\Resolver\Value\Chainable\VariableValueResolverTest::testGetsTheVariableFromTheScope PHP Method

testGetsTheVariableFromTheScope() public method

    public function testGetsTheVariableFromTheScope()
    {
        $value = new VariableValue('ping');
        $set = ResolvedFixtureSetFactory::create(new ParameterBag(['foo' => 'bar']));
        $scope = ['ping' => 'pong'];
        $expected = new ResolvedValueWithFixtureSet('pong', $set);
        $resolver = new VariableValueResolver();
        $actual = $resolver->resolve($value, new FakeFixture(), $set, $scope, new GenerationContext());
        $this->assertEquals($expected, $actual);
    }