@@ -783,6 +783,7 @@ public function archiveWithLicenseFileIsConsideredValid(): void
783783 }
784784
785785 #[Test]
786+ #[RunInSeparateProcess]
786787 public function failingGitattributesFilesCreationReturnsExpectedStatusCode (): void
787788 {
788789 $ artifactFilenames = ['CONDUCT.md ' ];
@@ -809,6 +810,7 @@ public function failingGitattributesFilesCreationReturnsExpectedStatusCode(): vo
809810 ]);
810811
811812 $ expectedDisplay = <<<CONTENT
813+ The --create option is deprecated. Please use the dedicated create command.
812814Warning: There is no .gitattributes file present in {$ this ->temporaryDirectory }.
813815
814816Creation of .gitattributes file failed.
@@ -841,6 +843,7 @@ public function validateOnNonExistentGitattributesFilesWithCreationOptionCreates
841843 ]);
842844
843845 $ expectedDisplay = <<<CONTENT
846+ The --create option is deprecated. Please use the dedicated create command.
844847Warning: There is no .gitattributes file present in {$ this ->temporaryDirectory }.
845848
846849Created a .gitattributes file with the shown content:
@@ -879,6 +882,7 @@ public function validateOnNonExistentGitattributesFilesWithCreationOptionCreates
879882 ]);
880883
881884 $ expectedDisplay = <<<CONTENT
885+ The --create option is deprecated. Please use the dedicated create command.
882886Warning: There is no .gitattributes file present in {$ this ->temporaryDirectory }.
883887
884888Created a .gitattributes file with the shown content:
@@ -924,6 +928,7 @@ public function validateOnNonExistentGitattributesFilesWithCreationOptionCreates
924928 ]);
925929
926930 $ expectedDisplay = <<<CONTENT
931+ The --create option is deprecated. Please use the dedicated create command.
927932Warning: There is no .gitattributes file present in {$ this ->temporaryDirectory }.
928933
929934Created a .gitattributes file with the shown content:
@@ -1153,6 +1158,7 @@ public function overwriteOptionOnNonExistentGitattributesFileImplicatesCreate():
11531158 ]);
11541159
11551160 $ expectedDisplay = <<<CONTENT
1161+ The --overwrite option is deprecated. Please use the dedicated update command.
11561162Warning: There is no .gitattributes file present in {$ this ->temporaryDirectory }.
11571163
11581164Created a .gitattributes file with the shown content:
@@ -1414,6 +1420,7 @@ public function incompleteGitattributesFileIsOverwrittenWithAlignment(): void
14141420 ]);
14151421
14161422 $ expectedDisplay = <<<CONTENT
1423+ The --overwrite option is deprecated. Please use the dedicated update command.
14171424The present .gitattributes file is considered invalid.
14181425
14191426Overwrote it with the shown content:
@@ -1619,7 +1626,10 @@ public function incompleteGitattributesFileIsOverwritten(string $option): void
16191626 '--omit-header ' => true ,
16201627 ]);
16211628
1629+ $ dedicatedCommand = $ option === '--create ' ? 'create ' : 'update ' ;
1630+
16221631 $ expectedDisplay = <<<CONTENT
1632+ The $ option option is deprecated. Please use the dedicated $ dedicatedCommand command.
16231633The present .gitattributes file is considered invalid.
16241634
16251635Overwrote it with the shown content:
@@ -1641,6 +1651,7 @@ public function incompleteGitattributesFileIsOverwritten(string $option): void
16411651
16421652 #[Test]
16431653 #[Ticket('https://github.com/raphaelstolt/lean-package-validator/issues/8 ' )]
1654+ #[RunInSeparateProcess]
16441655 public function failingGitattributesFilesOverwriteReturnsExpectedStatusCode (): void
16451656 {
16461657 $ gitattributesContent = <<<CONTENT
@@ -1676,6 +1687,7 @@ public function failingGitattributesFilesOverwriteReturnsExpectedStatusCode(): v
16761687 ]);
16771688
16781689 $ expectedDisplay = <<<CONTENT
1690+ The --create option is deprecated. Please use the dedicated create command.
16791691The present .gitattributes file is considered invalid.
16801692
16811693Overwrite of .gitattributes file failed.
0 commit comments