Skip to content

Commit

Permalink
Add additional tests
Browse files Browse the repository at this point in the history
Covers windows backslash file paths.
  • Loading branch information
dingo-d committed May 21, 2024
1 parent 2b9c257 commit 56a0bf1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/Unit/SettingsAddPathsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,21 @@ public static function dataAddPaths()
),
'Paths passed on CLI, paths with spaces' => array(
'original' => array('path with/spaces between/1', 'path with/spaces between/subdir/2'),
'extra' => array('path/1', 'path/subdir/3', 'path/with spaces'),
'extra' => array(
'path/1',
'path/subdir/3',
'path/with spaces',
'windows-path\with spaces\and\backslashes',
'windows path\with spaces\and\backslashes'
),
'expected' => array(
'path with/spaces between/1',
'path with/spaces between/subdir/2',
'path/1',
'path/subdir/3',
'path/with spaces'
'path/with spaces',
'windows-path\with spaces\and\backslashes',
'windows path\with spaces\and\backslashes',
),
)
);
Expand Down

0 comments on commit 56a0bf1

Please sign in to comment.