/**
* @test
*/
public function itShouldThrowException()
{
$this->expectException(ComposerFilesNotFoundException::class);
$files = FilesCommittedStub::createInvalidComposerFiles();
$output = new PreCommitOutputWriter(ComposerTool::CHECKING_MESSAGE);
$this->shouldWriteOutput($output->getMessage());
$this->shouldHandleQuery(new ComposerFilesExtractorQuery($files), ComposerFilesResponseStub::createInvalidData());
$this->shouldWriteLnOutput($output->getFailMessage());
$this->shouldWriteLnOutput(BadJobLogoResponse::paint($this->errorMessage));
$this->composerToolCommandHandler->handle(new ComposerToolCommand($files, $this->errorMessage));
}