diff --git a/tests/Sniffs/Functions/RequireTrailingCommaInCallSniffTest.php b/tests/Sniffs/Functions/RequireTrailingCommaInCallSniffTest.php index 5402b8a13..e3151a4bd 100644 --- a/tests/Sniffs/Functions/RequireTrailingCommaInCallSniffTest.php +++ b/tests/Sniffs/Functions/RequireTrailingCommaInCallSniffTest.php @@ -21,7 +21,7 @@ public function testErrors(): void 'enable' => true, ]); - self::assertSame(15, $report->getErrorCount()); + self::assertSame(17, $report->getErrorCount()); self::assertSniffError($report, 5, RequireTrailingCommaInCallSniff::CODE_MISSING_TRAILING_COMMA); self::assertSniffError($report, 12, RequireTrailingCommaInCallSniff::CODE_MISSING_TRAILING_COMMA); @@ -38,6 +38,8 @@ public function testErrors(): void self::assertSniffError($report, 83, RequireTrailingCommaInCallSniff::CODE_MISSING_TRAILING_COMMA); self::assertSniffError($report, 91, RequireTrailingCommaInCallSniff::CODE_MISSING_TRAILING_COMMA); self::assertSniffError($report, 99, RequireTrailingCommaInCallSniff::CODE_MISSING_TRAILING_COMMA); + self::assertSniffError($report, 107, RequireTrailingCommaInCallSniff::CODE_MISSING_TRAILING_COMMA); + self::assertSniffError($report, 114, RequireTrailingCommaInCallSniff::CODE_MISSING_TRAILING_COMMA); self::assertAllFixedInFile($report); } diff --git a/tests/Sniffs/Functions/data/requireTrailingCommaInCallErrors.fixed.php b/tests/Sniffs/Functions/data/requireTrailingCommaInCallErrors.fixed.php index 95a8a3867..e8e10af01 100644 --- a/tests/Sniffs/Functions/data/requireTrailingCommaInCallErrors.fixed.php +++ b/tests/Sniffs/Functions/data/requireTrailingCommaInCallErrors.fixed.php @@ -98,3 +98,18 @@ public static function createParent($a, $b) function () { }, ); + +call(<<