Skip to content

Commit e29bace

Browse files
committed
fix tests for Windows
1 parent 068860d commit e29bace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Unit/FilePathsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
expect($files)->toHaveCount(1);
121121
$file = $files[0];
122122
expect($file->path)->toBe($originalFile->path)
123-
->and($file->displayPath)->toBe('TestPath/first.log')
123+
->and($file->displayPath)->toBe('TestPath'.DIRECTORY_SEPARATOR.'first.log')
124124
->and($file->subFolder)->toBe('TestPath');
125125
});
126126

@@ -136,6 +136,6 @@
136136
expect($files)->toHaveCount(1);
137137
$file = $files[0];
138138
expect($file->path)->toBe($originalFile->path)
139-
->and($file->displayPath)->toBe('TestPath/first.log')
139+
->and($file->displayPath)->toBe('TestPath'.DIRECTORY_SEPARATOR.'first.log')
140140
->and($file->subFolder)->toBe('TestPath');
141141
});

0 commit comments

Comments
 (0)