Skip to content

Commit

Permalink
Skip FormatPerservingPrinterTest on windows (#109)
Browse files Browse the repository at this point in the history
file-mod is not a concept on windows, therefore is this test not usefull / will always fail
  • Loading branch information
staabm committed May 26, 2021
1 parent 4da81fa commit ae96c1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/PhpParser/Printer/FormatPerservingPrinterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ protected function tearDown(): void

public function testFileModeIsPreserved(): void
{
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$this->markTestSkipped('file modes are not supported on windows.');
}

mkdir(__DIR__ . '/Fixture');
touch(__DIR__ . '/Fixture/file.php');

Expand Down

0 comments on commit ae96c1a

Please sign in to comment.