diff --git a/tests/Unit/SettingsAddPathsTest.php b/tests/Unit/SettingsAddPathsTest.php index bd72c0d..718e83e 100644 --- a/tests/Unit/SettingsAddPathsTest.php +++ b/tests/Unit/SettingsAddPathsTest.php @@ -59,6 +59,25 @@ public static function dataAddPaths() 'extra' => array('path/1', 'path/subdir/3'), 'expected' => array('path/1', 'path/subdir/2', 'path/1', 'path/subdir/3'), ), + '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', + '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', + 'windows-path\with spaces\and\backslashes', + 'windows path\with spaces\and\backslashes', + ), + ) ); } }