Skip to content

Commit

Permalink
Squiz/FunctionDeclaration: rename test case file
Browse files Browse the repository at this point in the history
.... to allow for adding additional test case files.
  • Loading branch information
jrfnl committed Aug 1, 2024
1 parent 0855bf2 commit 60a5557
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,22 @@ final class FunctionDeclarationUnitTest extends AbstractSniffUnitTest
* The key of the array should represent the line number and the value
* should represent the number of errors that should occur on that line.
*
* @param string $testFile The name of the file being tested.
*
* @return array<int, int>
*/
public function getErrorList()
public function getErrorList($testFile='')
{
return [
55 => 1,
68 => 1,
];
switch ($testFile) {
case 'FunctionDeclarationUnitTest.1.inc':
return [
55 => 1,
68 => 1,
];

default:
return [];
}//end switch

}//end getErrorList()

Expand Down

0 comments on commit 60a5557

Please sign in to comment.