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.
This commit is contained in:
Franz Liedke 2020-05-23 02:00:25 +02:00 committed by Alexander Skvortsov
parent fe0159ecd1
commit 3224aeabac

View File

@ -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);
}
/**