Skip to content

Commit 509b57d

Browse files
committed
real path
1 parent 2c0c130 commit 509b57d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Context/GivenStepDefinitions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ public function given_a_specific_directory( $empty_or_nonexistent, $dir ): void
5454
$dir = preg_replace( '|^/private/var/|', '/var/', $dir );
5555

5656
$temp_dir = sys_get_temp_dir();
57+
if ( Utils\is_windows() ) {
58+
$temp_dir = realpath( $temp_dir ) ?: $temp_dir;
59+
}
5760

5861
// Also check for temp dir prefixed with `/private` for Mac OS X.
5962
if ( 0 !== strpos( $dir, $temp_dir ) && 0 !== strpos( $dir, "/private{$temp_dir}" ) ) {

0 commit comments

Comments
 (0)