Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  Port Appveyor to GitHub Actions
  normalize paths to avoid failures if a path is referenced by different names
  skip autocomplete test when stty is not available
  Bump Symfony version to 5.4.47
  Update VERSION for 5.4.46
  Update CONTRIBUTORS for 5.4.46
  Update CHANGELOG for 5.4.46
  • Loading branch information
nicolas-grekas committed Nov 6, 2024
2 parents 25214ad + 5d1662f commit 3cb242f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/ExecutableFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,16 @@ public function testFindBatchExecutableOnWindows()
$this->markTestSkipped('Can be only tested on windows');
}

$target = str_replace('.tmp', '_tmp', tempnam(sys_get_temp_dir(), 'example-windows-executable'));
$tempDir = realpath(sys_get_temp_dir());
$target = str_replace('.tmp', '_tmp', tempnam($tempDir, 'example-windows-executable'));

try {
touch($target);
touch($target.'.BAT');

$this->assertFalse(is_executable($target));

putenv('PATH='.sys_get_temp_dir());
putenv('PATH='.$tempDir);

$finder = new ExecutableFinder();
$result = $finder->find(basename($target), false);
Expand Down

0 comments on commit 3cb242f

Please sign in to comment.