Skip to content

Commit 6284297

Browse files
committed
Squiz/ControlSignature: rename test case file to allow for adding more
1 parent 3d55d71 commit 6284297

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public function getErrorList($testFile='')
5555
112 => 1,
5656
];
5757

58-
if ($testFile === 'ControlSignatureUnitTest.inc') {
58+
switch ($testFile) {
59+
case 'ControlSignatureUnitTest.1.inc':
5960
$errors[122] = 1;
6061
$errors[130] = 2;
6162
$errors[134] = 1;
@@ -84,9 +85,14 @@ public function getErrorList($testFile='')
8485
$errors[306] = 3;
8586
$errors[309] = 1;
8687
$errors[315] = 1;
87-
}//end if
88+
return $errors;
8889

89-
return $errors;
90+
case 'ControlSignatureUnitTest.js':
91+
return $errors;
92+
93+
default:
94+
return [];
95+
}//end switch
9096

9197
}//end getErrorList()
9298

0 commit comments

Comments
 (0)