public function itShouldWorksFine()
{
$phpFiles = FilesCommittedStub::createOnlyPhpFiles();
$outputMessage = new PreCommitOutputWriter(PhpLintTool::RUNNING_PHPLINT);
$this->shouldWriteOutput($outputMessage->getMessage());
foreach ($phpFiles as $file) {
$this->shouldProcessPhpLintTool($file, null);
}
$this->shouldWriteLnOutput($outputMessage->getSuccessfulMessage());
$this->phpLintToolCommandHandler->handle(new PhpLintToolCommand($phpFiles, HookQuestions::PRE_COMMIT_ERROR_MESSAGE_DEFAULT));
}