Skip to content

Commit

Permalink
try to fix windows compat
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab committed Apr 15, 2021
1 parent 06beee5 commit d9dbec3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Console/Command/ListFilesCommandTest.php
Expand Up @@ -30,7 +30,12 @@ public function testListWithConfig()
$commandTester = $this->doTestExecute([
'--config' => __DIR__ . '/../../Fixtures/ListFilesTest/.php-cs-fixer.php'
]);
$this->assertSame(escapeshellarg('./tests/Fixtures/ListFilesTest/needs-fixing/needs-fixing.php').PHP_EOL, $commandTester->getDisplay());

$expectedPath = './tests/Fixtures/ListFilesTest/needs-fixing/needs-fixing.php';
// make the test also work on windows
$expectedPath = str_replace('/', DIRECTORY_SEPARATOR, $expectedPath);

$this->assertSame(escapeshellarg($expectedPath).PHP_EOL, $commandTester->getDisplay());
}

/**
Expand Down

0 comments on commit d9dbec3

Please sign in to comment.