We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d51811b commit aa40236Copy full SHA for aa40236
1 file changed
tests/path.test.php
@@ -29,11 +29,15 @@
29
test('Can join paths', function () {
30
$path2 = '/path/to';
31
32
- expect(path($path2)->join('file2.txt'))->toBe('/path/to/file2.txt');
+ expect(path($path2)->join('file2.txt'))->toBe(
33
+ DIRECTORY_SEPARATOR . 'path' . DIRECTORY_SEPARATOR . 'to' . DIRECTORY_SEPARATOR . 'file2.txt'
34
+ );
35
});
36
37
test('Can normalize path', function () {
38
$path = '/path/to/../to/file.txt';
39
- expect(path($path)->normalize())->toBe('/path/to/file.txt');
40
+ expect(path($path)->normalize())->toBe(
41
+ DIRECTORY_SEPARATOR . 'path' . DIRECTORY_SEPARATOR . 'to' . DIRECTORY_SEPARATOR . 'file.txt'
42
43
0 commit comments