/**
  * @test
  */
 public function it_adds_writes_error_to_output_on_fail()
 {
     $this->response_mock->shouldReceive('getSuccessful')->andReturn(false)->once();
     $this->response_mock->shouldReceive('getResponse')->andReturn("Error")->once();
     $this->output_mock->shouldReceive('writeln')->with("<error>Error</error>")->once();
     $this->stub->exposeOutputResponse($this->response_mock);
 }
 /**
  * @test
  */
 public function it_adds_the_expected_trait()
 {
     $this->output_mock->shouldReceive('writeln')->with('<info>Running "composer dumpauto -o"...</info>')->once();
     $this->input_mock->shouldReceive('getOption')->with('composer')->andReturn('composer_mock')->once();
     $this->request_mock->shouldReceive('setCommand')->with('composer_mock dumpauto -o')->andReturnSelf()->once();
     $this->request_mock->shouldReceive('run')->withNoArgs()->andReturn($this->response_mock)->once();
     $this->response_mock->shouldReceive('getSuccessful')->withNoArgs()->andReturn(true)->once();
     $this->response_mock->shouldReceive('getResponse')->withNoArgs()->andReturn('Response')->once();
     $this->output_mock->shouldReceive('writeln')->with('<comment>Response</comment>')->once();
     $this->stub->exposeComposerDumpauto();
 }