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
parent 4866e7d9ba
commit c4f4f218bf
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

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