public function testCustomHttpClientArrayConfigurationCanBeUsed() { $httpConfig = array('adapter' => 'Zend\\Http\\Client\\Adapter\\Test', 'useragent' => 'Dyn Custom array configured Http Client'); $mm = new MessageManagement('xxxxxxxxxxxx', $httpConfig); $customHttpClient = new HttpClient(null, $httpConfig); $this->assertEquals($customHttpClient, $mm->getApiClient()->getHttpClient()); }