Code Duplication    Length = 19-21 lines in 3 locations

tests/unit/GigyaTest.php 3 locations

@@ 208-226 (lines=19) @@
205
        static::assertSame($gigyaResponse, $result);
206
    }
207
208
    public function testSettingDataCenterToAuWillCallAuUri()
209
    {
210
        $gigyaResponse = $this->setupCall(
211
            'accounts.getAccountInfo',
212
            'https://accounts.au1.gigya.com/accounts.getAccountInfo',
213
            [
214
                'auth'   => 'gigya',
215
                'verify' => $this->certPath,
216
                'query'  => [],
217
            ],
218
            'key',
219
            'secret'
220
        );
221
        $client = $this->createClient('key', 'secret', Gigya::DC_AU);
222
223
        $result = $client->accounts()->getAccountInfo([]);
224
225
        static::assertSame($gigyaResponse, $result);
226
    }
227
228
    public function testSettingDataCenterToUsWillCallUsUri()
229
    {
@@ 228-246 (lines=19) @@
225
        static::assertSame($gigyaResponse, $result);
226
    }
227
228
    public function testSettingDataCenterToUsWillCallUsUri()
229
    {
230
        $gigyaResponse = $this->setupCall(
231
            'accounts.getAccountInfo',
232
            'https://accounts.us1.gigya.com/accounts.getAccountInfo',
233
            [
234
                'auth'   => 'gigya',
235
                'verify' => $this->certPath,
236
                'query'  => [],
237
            ],
238
            'key',
239
            'secret'
240
        );
241
        $client = $this->createClient('key', 'secret', Gigya::DC_US);
242
243
        $result = $client->accounts()->getAccountInfo([]);
244
245
        static::assertSame($gigyaResponse, $result);
246
    }
247
248
    public function testSettingTheUserKeyWillPassItThroughToGuzzle()
249
    {
@@ 248-268 (lines=21) @@
245
        static::assertSame($gigyaResponse, $result);
246
    }
247
248
    public function testSettingTheUserKeyWillPassItThroughToGuzzle()
249
    {
250
        $gigyaResponse = $this->setupCall(
251
            'accounts.getAccountInfo',
252
            'https://accounts.eu1.gigya.com/accounts.getAccountInfo',
253
            [
254
                'auth'   => 'gigya',
255
                'verify' => $this->certPath,
256
                'query'  => [],
257
            ],
258
            'key',
259
            'userSecret',
260
            'userKey'
261
        );
262
        $client = $this->createClient('key', 'userSecret', Gigya::DC_EU, 'userKey');
263
        $client->setFactory($this->factory);
264
265
        $result = $client->accounts()->getAccountInfo([]);
266
267
        static::assertSame($gigyaResponse, $result);
268
    }
269
270
    public function testPassingParamsThroughToTheMethodWillPassThroughToGuzzle()
271
    {