Skip to content

Commit 923d01f

Browse files
dingo-dgrogy
authored andcommitted
Add additional tests
Covers windows backslash file paths.
1 parent a9142c4 commit 923d01f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/Unit/SettingsAddPathsTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,21 @@ public static function dataAddPaths()
6161
),
6262
'Paths passed on CLI, paths with spaces' => array(
6363
'original' => array('path with/spaces between/1', 'path with/spaces between/subdir/2'),
64-
'extra' => array('path/1', 'path/subdir/3', 'path/with spaces'),
64+
'extra' => array(
65+
'path/1',
66+
'path/subdir/3',
67+
'path/with spaces',
68+
'windows-path\with spaces\and\backslashes',
69+
'windows path\with spaces\and\backslashes'
70+
),
6571
'expected' => array(
6672
'path with/spaces between/1',
6773
'path with/spaces between/subdir/2',
6874
'path/1',
6975
'path/subdir/3',
70-
'path/with spaces'
76+
'path/with spaces',
77+
'windows-path\with spaces\and\backslashes',
78+
'windows path\with spaces\and\backslashes',
7179
),
7280
)
7381
);

0 commit comments

Comments
 (0)