protected function executeWithBlueprint(\StackFormation\Blueprint $blueprint, InputInterface $input, OutputInterface $output)
 {
     $blueprintAction = new \StackFormation\BlueprintAction($blueprint, $this->profileManager, $output);
     $changeSetResult = $blueprintAction->getChangeSet();
     $table = new \StackFormation\Helper\ChangeSetTable($output);
     $table->render($changeSetResult);
 }
 /**
  * @test
  */
 public function statusVariable()
 {
     $testfile = tempnam(sys_get_temp_dir(), __FUNCTION__);
     $blueprintMock = $this->getMock('\\StackFormation\\Blueprint', [], [], '', false);
     $blueprintMock->method('getBlueprintReference')->willReturn('FOO');
     $blueprintMock->method('getStackName')->willReturn('FooStackName');
     $blueprintMock->method('getBasePath')->willReturn(sys_get_temp_dir());
     $blueprintMock->method('getAfterScript')->willReturn('echo -n "$STATUS" > ' . $testfile);
     $blueprintAction = new \StackFormation\BlueprintAction($blueprintMock, $this->profileManagerMock);
     $blueprintAction->executeAfterScript('FOOSTATUS');
     $this->assertStringEqualsFile($testfile, 'FOOSTATUS');
     unlink($testfile);
 }