public static function createWithoutJsonFiles() { $generator = StubCreator::faker(); return self::create([$generator->sha1, '/path1/path2/file1.php', '/path1/path2/file2.php', '/path1/path2/file3.php']); }
/** * @test */ public function itShouldNotExecuteTool() { $files = FilesCommittedStub::createWithoutJsonFiles(); $this->shouldHandleQuery(new JsonFilesExtractorQuery($files), JsonFilesResponseStub::createNoData()); $this->jsonLintToolCommandHandler->handle(new JsonLintToolCommand($files, $this->errorMessage)); }