Skip to content

Commit eda4b5f

Browse files
committed
A couple more unit tests for #1938
1 parent c8531f6 commit eda4b5f

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,13 @@ function myFunction($a, $lot, $of, $params)
221221
{ // phpcs:ignore Standard.Category.Sniff -- for reasons.
222222
return null;
223223
}
224+
225+
function myFunction($a, $lot, $of, $params)
226+
: array /* phpcs:ignore Standard.Category.Sniff -- for reasons */ {
227+
return null;
228+
}
229+
230+
function myFunction($a, $lot, $of, $params)
231+
: array /* comment */ {
232+
return null;
233+
}

src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.inc.fixed

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,3 +238,15 @@ function myFunction($a, $lot, $of, $params)
238238
{ // phpcs:ignore Standard.Category.Sniff -- for reasons.
239239
return null;
240240
}
241+
242+
function myFunction($a, $lot, $of, $params)
243+
: array /* phpcs:ignore Standard.Category.Sniff -- for reasons */
244+
{
245+
return null;
246+
}
247+
248+
function myFunction($a, $lot, $of, $params)
249+
: array /* comment */
250+
{
251+
return null;
252+
}

src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public function getErrorList()
5555
205 => 2,
5656
210 => 2,
5757
215 => 1,
58+
226 => 1,
59+
231 => 1,
5860
];
5961

6062
}//end getErrorList()

0 commit comments

Comments
 (0)