public static function createWithoutComposerFiles() { $generator = StubCreator::faker(); return self::create([$generator->sha1, '/path1/path2/file1.php', '/path1/path2/file2.php', '/path1/path2/file3.php', 'file1.json', 'file2.json']); }
/** * @test */ public function itShouldNotExecuteComposerTool() { $files = FilesCommittedStub::createWithoutComposerFiles(); $this->shouldHandleQuery(new ComposerFilesExtractorQuery($files), ComposerFilesResponseStub::createNoData()); $this->composerToolCommandHandler->handle(new ComposerToolCommand($files, $this->errorMessage)); }