|
4 | 4 |
|
5 | 5 | test('getProjectRoot') |
6 | 6 | ->expect((new File)->getProjectRoot()) |
7 | | - ->toBe(realpath(__DIR__ . '/../../../')); |
| 7 | + ->toBe(realpath(__DIR__.'/../../../')); |
8 | 8 |
|
9 | 9 | it('constructs with project root path by default') |
10 | 10 | ->expect((new File)->getPath()) |
11 | | - ->toBe(realpath(__DIR__ . '/../../../')); |
| 11 | + ->toBe(realpath(__DIR__.'/../../../')); |
12 | 12 |
|
13 | 13 | it('constructs with given valid absolute paths') |
14 | 14 | ->expect([ |
|
43 | 43 | ->expect([ |
44 | 44 | (new File('tests'))->getPath(), |
45 | 45 | (string) new File('/tests'), |
46 | | - (string) new File(DIRECTORY_SEPARATOR . 'tests'), |
| 46 | + (string) new File(DIRECTORY_SEPARATOR.'tests'), |
47 | 47 | // Can test '\test' on windows |
48 | 48 | ]) |
49 | 49 | ->each |
50 | | - ->toBe(realpath(__DIR__ . '/../..')); |
| 50 | + ->toBe(realpath(__DIR__.'/../..')); |
51 | 51 |
|
52 | 52 | test('isDir') |
53 | 53 | ->expect((new File(__DIR__))->isDir()) |
|
57 | 57 |
|
58 | 58 | test('getDirectoryContent') |
59 | 59 | ->expect((new File())->getDirectoryContent()) |
60 | | - ->toContain(realpath(__DIR__ . '/../../../composer.json')) |
61 | | - ->toContain(realpath(__DIR__ . '/../../../src')) |
62 | | - ->toContain(realpath(__DIR__ . '/../../../tests')) |
63 | | - ->toContain(realpath(__DIR__ . '/../../../vendor')); |
| 60 | + ->toContain(realpath(__DIR__.'/../../../composer.json')) |
| 61 | + ->toContain(realpath(__DIR__.'/../../../src')) |
| 62 | + ->toContain(realpath(__DIR__.'/../../../tests')) |
| 63 | + ->toContain(realpath(__DIR__.'/../../../vendor')); |
64 | 64 |
|
65 | 65 | it('throws an exception for calling getDirectoryContent on a file') |
66 | 66 | ->expect(fn () => (new File('composer.json'))->getDirectoryContent()) |
|
69 | 69 | test('getDirectoryJsonContent') |
70 | 70 | ->expect((new File())->getDirectoryJsonContent()) |
71 | 71 | ->toHaveCount(1) |
72 | | - ->toContain(realpath(__DIR__ . '/../../../composer.json')); |
| 72 | + ->toContain(realpath(__DIR__.'/../../../composer.json')); |
73 | 73 |
|
74 | 74 | it('throws an exception for calling getDirectoryJsonContent on a file') |
75 | 75 | ->expect(fn () => (new File('composer.json'))->getDirectoryJsonContent()) |
|
0 commit comments