From 7d953dfb90d3508039b2ce355744b38710de9d86 Mon Sep 17 00:00:00 2001 From: kkmuffme <11071985+kkmuffme@users.noreply.github.com> Date: Sat, 22 Oct 2022 08:48:18 +0200 Subject: [PATCH] add tests --- tests/ArgTest.php | 69 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/tests/ArgTest.php b/tests/ArgTest.php index de57435f0e9..2d16c1934dd 100644 --- a/tests/ArgTest.php +++ b/tests/ArgTest.php @@ -312,6 +312,40 @@ public function foo(int ...$values): array } ', ], + 'variadicCallbackArgsCountMatch' => [ + ' [ + ' 'TooFewArguments', ], + 'callbackArgsCountMismatch' => [ + ' 'InvalidScalarArgument', + ], + 'callableArgsCountMismatch' => [ + ' 'InvalidScalarArgument', + ], ]; } }