From b789ce24e509c09d1bbda36c3569ca24db58e4f4 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..ad70ddcc107 100644 --- a/tests/ArgTest.php +++ b/tests/ArgTest.php @@ -312,6 +312,40 @@ public function foo(int ...$values): array } ', ], + 'variadicCallbackArgsCountMatch' => [ + ' [ + ' 'TooFewArguments', ], + 'callbackArgsCountMismatch' => [ + ' 'InvalidArgument', + ], + 'callableArgsCountMismatch' => [ + ' 'InvalidArgument', + ], ]; } }