-
-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Windows] Rework add windows support on tests CI (#5504)
* [Windows] Rework add windows support on tests CI * normalize file paths * normalize file paths * compare to false * utilize PHP_EOL on FixtureSplitter for cross platform check * fix WorkerCommandLineFactoryTest * enable NewlineBeforeNewAssignSetRector * normalize use \n for ending on DefaultDiffer * [ci-review] Rector Rectify * normalize \r\n * normalize in ConsoleDiffer as well * [ci-review] Rector Rectify * normalize \n on FixtureSplitter * fix replace * fix FIlesFinderTest * fix test on FilePathHelperTest * fix test on SkippedPathsResolverTest * udpat regex uri * normalize PhpDocInfoTest * check line ending PHP_EOL on BetterStandardPrinter * use PHP_EOL on BetterPhpDocParser * normalize PHP_EOL on PhpDocInfoPrinter * normalize PHP_EOL on Differ * normalize print docblock of InlineHTML * normalize output result on print on PhpDocInfoPrinter * normalize child node output * normalize new line on BetterPhpDocParser * normalize new line on BetterPhpDocParser * [ci-review] Rector Rectify * normalize path on FilePathHelper * verify \n on PhpDocInfoPrinter * comment * fix unnecessary cast * end with verify no need * normalize content on FixtureFileUpdater * fix path resolve * remove cheap check * fix BetterStandardPrinterTest * Fix PhpDocInfoTest * Revert "Fix PhpDocInfoTest" This reverts commit 2622eb5. * normalize file content * split fix * replace \r\n with \n of file content * clean up normalize content * clean up normalize content * [ci-review] Rector Rectify * clean up normalize content * clean up normalize content * Fix Differ * roll * normalize \n on ColorConsoleDiffFormatter * normalize \n on diff * normalize \n on diff * display as original PHP_EOL on format final result * normalize new line on DoctrineAnnotationDecorator * split fix * final touch: typo fix * Final touch: normalize printFormatPreserving() * final touch: normalize PhpDocInfoPrinter as well * Revert "final touch: normalize PhpDocInfoPrinter as well" This reverts commit be34a68. * final touch: comment * final touch: clarify comment * try windows on e2e.yaml * normalize diff on ConsoleDiffer and DefaultDiffer * try normalize in diff * trim * trim * flip * roll * roll * try StrictUnifiedDiffOutputBuilder * use \n on ColorConsoleDiffFormatter * do not normalize too early on FixtureSplitter, let differ handle it * do not normalize too early on FixtureSplitter, let differ handle it * back DoctrineAnnotationDecorator * back ConsoleDiffer * back BetterStandardPrinter * back FixtureFileUpdater * back FixtureSplitter * normalize new line on differ * normalize new line on differ * use PHP_EOL * normalize both \r\n and \r to \n * use DiffNormalizer on AbstractRectorTestCase * use PHP_EOL * Revert "use PHP_EOL" This reverts commit ca05b97. * Revert "use DiffNormalizer on AbstractRectorTestCase" This reverts commit 9b74148. * handle new line replace with space multi platform on PhpDocInfoPrinter * multi platform new line replace keep definition on BetterPhpDocParser * [ci-review] Rector Rectify * use PHP_EOL on ColorConsoleDiffFormatter * Fix TestModifyReprintTest and TagValueNodeReprintTest * fix TestModifyReprintTest * Fix CommentRemoverTest * normalize FixtureSplitter * rooll * fix TagvalueNodeReprintTest * use \n on ColorConsoleDiffFormatter * use \n on ColorConsoleDiffFormatter * rollback differ * replace \r\n on diff output * fix ColorConsoleDiffFormatterTest * use "\r\n" * refactor PhpDocInfoTest * fix * fix * Revert "fix" This reverts commit 21f106e. * Revert "fix" This reverts commit 3bf0992. * Revert "refactor PhpDocInfoTest" This reverts commit f08165f. * fixing e2eTestRunner * rollback e2e windows tset --------- Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
b107a16
commit 040b839
Showing
21 changed files
with
104 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Skipper\FileSystem; | ||
|
||
final class PathNormalizer | ||
{ | ||
public static function normalize(string $path): string | ||
{ | ||
return str_replace('\\', '/', $path); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.