public function test_it_will_not_generate_phpunit_configuration_after_overwrite_confirmation()
 {
     file_put_contents($this->configPath, '<phpunit>old</phpunit>');
     $this->factoryMock->expects(static::any())->method('create')->with($this->inputMock, $this->outputMock, $this->questionMock)->willReturn($config = '<phpunit/>');
     static::assertEquals(0, $this->sut->run($this->inputMock, $this->outputMock));
     static::assertEquals($config, file_get_contents($this->configPath));
 }
 /**
  * @return string
  */
 private function call_create_on_sut()
 {
     // low priority catchall
     $this->mockHelper->shouldReceive('ask')->withAnyArgs()->andReturn();
     return $this->sut->create($this->mockInput, $this->mockOutput, $this->mockHelper);
 }