Skip to content

Commit 4278337

Browse files
Merge branch '6.4' into 7.1
* 6.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 6.4.15 Update VERSION for 6.4.14 Update CHANGELOG for 6.4.14 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
2 parents 9b8a40b + 3cb242f commit 4278337

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/ExecutableFinderTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,16 @@ public function testFindBatchExecutableOnWindows()
123123
$this->markTestSkipped('Can be only tested on windows');
124124
}
125125

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

128129
try {
129130
touch($target);
130131
touch($target.'.BAT');
131132

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

134-
putenv('PATH='.sys_get_temp_dir());
135+
putenv('PATH='.$tempDir);
135136

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

0 commit comments

Comments
 (0)