Skip to content

Commit

Permalink
Moved tests around to group them (ref #3101)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Sep 21, 2020
1 parent 65aaa7c commit e94627c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
18 changes: 8 additions & 10 deletions src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,6 @@ $foo =
],
];

// phpcs:set Generic.Arrays.ArrayIndent indent 2

$var = [
1 => 'one',
2 => 'two',
/* three */ 3 => 'three',
];

// phpcs:set Generic.Arrays.ArrayIndent indent 4

$foo = [
'foo'
. 'bar',
Expand All @@ -88,3 +78,11 @@ $foo = [
'qux',
],
];

// phpcs:set Generic.Arrays.ArrayIndent indent 2

$var = [
1 => 'one',
2 => 'two',
/* three */ 3 => 'three',
];
18 changes: 8 additions & 10 deletions src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.inc.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,6 @@ $foo =
],
];

// phpcs:set Generic.Arrays.ArrayIndent indent 2

$var = [
1 => 'one',
2 => 'two',
/* three */ 3 => 'three',
];

// phpcs:set Generic.Arrays.ArrayIndent indent 4

$foo = [
'foo'
. 'bar',
Expand All @@ -89,3 +79,11 @@ $foo = [
'qux',
],
];

// phpcs:set Generic.Arrays.ArrayIndent indent 2

$var = [
1 => 'one',
2 => 'two',
/* three */ 3 => 'three',
];
4 changes: 2 additions & 2 deletions src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public function getErrorList()
62 => 1,
63 => 1,
69 => 1,
76 => 1,
77 => 1,
78 => 1,
79 => 1,
85 => 1,
86 => 1,
87 => 1,
88 => 1,
89 => 1,
];

}//end getErrorList()
Expand Down

0 comments on commit e94627c

Please sign in to comment.