StackFormation\Tests\Stage\ValueResolver\ConditionalValueTest::resolve PHP Method

resolve() public method

public resolve ( array $conditions, string $expectedValue, string | null $putenv = null )
$conditions array
$expectedValue string
$putenv string | null
    public function resolve(array $conditions, $expectedValue, $putenv = null)
    {
        if ($putenv) {
            putenv($putenv);
        }
        $blueprint = $this->getMock('\\StackFormation\\Blueprint', [], [], '', false);
        $blueprint->method('getVars')->willReturn(['BlueprintFoo' => 'BlueprintBar']);
        $actualValue = $this->conditionalValueStage->__invoke($conditions);
        $this->assertEquals($expectedValue, $actualValue);
    }