From c4f4f218bf4b175a30880b807f9ccb1a37a25330 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sat, 23 May 2020 02:00:25 +0200 Subject: [PATCH] Tests: Actually accept multiple extenders We did pass multiple extenders to this method in the tests for the `Model` extender - now this actually has the desired effect. --- tests/integration/TestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/TestCase.php b/tests/integration/TestCase.php index cf35bbcf1..d7253f45c 100644 --- a/tests/integration/TestCase.php +++ b/tests/integration/TestCase.php @@ -56,9 +56,9 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase */ protected $extenders = []; - protected function extend(ExtenderInterface $extender) + protected function extend(ExtenderInterface ...$extenders) { - $this->extenders[] = $extender; + $this->extenders = array_merge($this->extenders, $extenders); } /**