diff --git a/Tests/ExecutableFinderTest.php b/Tests/ExecutableFinderTest.php index 84e5b3c3..c102ab68 100644 --- a/Tests/ExecutableFinderTest.php +++ b/Tests/ExecutableFinderTest.php @@ -123,7 +123,8 @@ 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); @@ -131,7 +132,7 @@ public function testFindBatchExecutableOnWindows() $this->assertFalse(is_executable($target)); - putenv('PATH='.sys_get_temp_dir()); + putenv('PATH='.$tempDir); $finder = new ExecutableFinder(); $result = $finder->find(basename($target), false);
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: