Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a9142c4

Browse files
dingo-dgrogy
authored andcommitted
Add tests for paths with spaces
1 parent 448644a commit a9142c4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎tests/Unit/SettingsAddPathsTest.php‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ public static function dataAddPaths()
5959
'extra' => array('path/1', 'path/subdir/3'),
6060
'expected' => array('path/1', 'path/subdir/2', 'path/1', 'path/subdir/3'),
6161
),
62+
'Paths passed on CLI, paths with spaces' => array(
63+
'original' => array('path with/spaces between/1', 'path with/spaces between/subdir/2'),
64+
'extra' => array('path/1', 'path/subdir/3', 'path/with spaces'),
65+
'expected' => array(
66+
'path with/spaces between/1',
67+
'path with/spaces between/subdir/2',
68+
'path/1',
69+
'path/subdir/3',
70+
'path/with spaces'
71+
),
72+
)
6273
);
6374
}
6475
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /