Skip to content

Commit d34b22b

Browse files
Merge branch '7.1' into 7.2
* 7.1: 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 7.1.8 Update VERSION for 7.1.7 Update CHANGELOG for 7.1.7 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 37f5c1f + 4278337 commit d34b22b

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
@@ -148,15 +148,16 @@ public function testFindBatchExecutableOnWindows()
148148
$this->markTestSkipped('Can be only tested on windows');
149149
}
150150

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

153154
try {
154155
touch($target);
155156
touch($target.'.BAT');
156157

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

159-
putenv('PATH='.sys_get_temp_dir());
160+
putenv('PATH='.$tempDir);
160161

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

0 commit comments

Comments
 (0)