diff --git a/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc b/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.1.inc similarity index 97% rename from src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc rename to src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.1.inc index 8bd067b3f9..29ef802d55 100644 --- a/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc +++ b/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.1.inc @@ -172,3 +172,8 @@ $foo = new MyClass( $obj, 'getMethod', ); + +#[AttributeName(1, 2)] +#[AttributeName(1,2)] + +$callable = myCallable(...); diff --git a/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc.fixed b/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.1.inc.fixed similarity index 97% rename from src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc.fixed rename to src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.1.inc.fixed index 69676524dc..3f0cb0fca6 100644 --- a/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.inc.fixed +++ b/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.1.inc.fixed @@ -172,3 +172,8 @@ $foo = new MyClass( $obj, 'getMethod', ); + +#[AttributeName(1, 2)] +#[AttributeName(1, 2)] + +$callable = myCallable(...); diff --git a/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.2.inc b/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.2.inc new file mode 100644 index 0000000000..f0ff633eed --- /dev/null +++ b/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.2.inc @@ -0,0 +1,7 @@ + */ - public function getErrorList() + public function getErrorList($testFile='') { - return [ - 5 => 1, - 6 => 1, - 7 => 2, - 8 => 1, - 11 => 1, - 12 => 1, - 13 => 1, - 42 => 3, - 43 => 3, - 45 => 1, - 46 => 2, - 79 => 1, - 82 => 1, - 93 => 1, - 105 => 1, - 107 => 1, - 108 => 2, - 114 => 1, - 115 => 1, - 119 => 1, - 125 => 2, - 130 => 2, - 131 => 1, - 132 => 2, - 133 => 2, - 134 => 1, - 154 => 2, - 155 => 1, - 162 => 2, - 170 => 1, - ]; + switch ($testFile) { + case 'FunctionCallArgumentSpacingUnitTest.1.inc': + return [ + 5 => 1, + 6 => 1, + 7 => 2, + 8 => 1, + 11 => 1, + 12 => 1, + 13 => 1, + 42 => 3, + 43 => 3, + 45 => 1, + 46 => 2, + 79 => 1, + 82 => 1, + 93 => 1, + 105 => 1, + 107 => 1, + 108 => 2, + 114 => 1, + 115 => 1, + 119 => 1, + 125 => 2, + 130 => 2, + 131 => 1, + 132 => 2, + 133 => 2, + 134 => 1, + 154 => 2, + 155 => 1, + 162 => 2, + 170 => 1, + 177 => 1, + ]; + + default: + return []; + }//end switch }//end getErrorList()