We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c0c130 commit 509b57dCopy full SHA for 509b57d
1 file changed
src/Context/GivenStepDefinitions.php
@@ -54,6 +54,9 @@ public function given_a_specific_directory( $empty_or_nonexistent, $dir ): void
54
$dir = preg_replace( '|^/private/var/|', '/var/', $dir );
55
56
$temp_dir = sys_get_temp_dir();
57
+ if ( Utils\is_windows() ) {
58
+ $temp_dir = realpath( $temp_dir ) ?: $temp_dir;
59
+ }
60
61
// Also check for temp dir prefixed with `/private` for Mac OS X.
62
if ( 0 !== strpos( $dir, $temp_dir ) && 0 !== strpos( $dir, "/private{$temp_dir}" ) ) {
0 commit comments