public function testSetParamsConvertToString() { $expectedParams = ['status' => 'new,very_new,super_new', 'statuses' => [[1, 2, 3], [4, 5, 6]]]; $this->transport->shouldReceive('performRequest')->withArgs(['POST', 'some_endpoint', $expectedParams, null, []]); $this->endpoint->shouldReceive('getParamWhiteList')->andReturn(['status', 'statuses']); $this->endpoint->setParams(['status' => ['new', 'very_new', 'super_new'], 'statuses' => [[1, 2, 3], [4, 5, 6]]]); $this->endpoint->performRequest(); }