Skip to content

Commit

Permalink
Tests/GitStagedTest: normalize data provider arrays
Browse files Browse the repository at this point in the history
... to improve scannability of the test cases covered.

See 225
  • Loading branch information
jrfnl committed Jan 14, 2024
1 parent c821e24 commit 2621fc0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/Core/Filters/GitStagedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,18 @@ public static function dataAcceptOnlyGitStaged()

'single file marked as git modified - file in root dir' => [
'inputPaths' => $fakeFileList,
'outputGitStaged' => ['autoload.php'],
'outputGitStaged' => [
'autoload.php',
],
'expectedOutput' => [
$basedir.'/autoload.php',
],
],
'single file marked as git modified - file in sub dir' => [
'inputPaths' => $fakeFileList,
'outputGitStaged' => ['src/Standards/Generic/Sniffs/Classes/DuplicateClassNameSniff.php'],
'outputGitStaged' => [
'src/Standards/Generic/Sniffs/Classes/DuplicateClassNameSniff.php',
],
'expectedOutput' => [
$basedir.'/src',
$basedir.'/src/Standards',
Expand Down

0 comments on commit 2621fc0

Please sign in to comment.