Code Duplication    Length = 13-13 lines in 2 locations

Tests/Api/Report/GeoLocationPerformanceReportTest.php 2 locations

@@ 113-125 (lines=13) @@
110
        $this->assertEquals(self::REFRESH_TOKEN, $apiClient->getRefreshToken());
111
    }
112
113
    public function testGeoLocationPerformanceReportTimeoutException()
114
    {
115
        $this->expectException(Exceptions\RequestTimeoutException::class);
116
        $apiClient = $this->getApiClient(
117
            $this->getRequestNewAccessTokenMock(),
118
            new ApiDetails('refreshToken', 'clientId', 'clientSecret', 'redirectUri', 'devToken'),
119
            $this->getClientProxyMock('Pending'),
120
            new Helper\File(),
121
            new Helper\Csv(),
122
            $this->getTimeHelperMock()
123
        );
124
        $apiClient->get(['TimePeriod', 'AccountName', 'AdGroupId'], 'GeoLocationPerformanceReport');
125
    }
126
127
    public function testGeoLocationPerformanceReportRequestErrorException()
128
    {
@@ 127-139 (lines=13) @@
124
        $apiClient->get(['TimePeriod', 'AccountName', 'AdGroupId'], 'GeoLocationPerformanceReport');
125
    }
126
127
    public function testGeoLocationPerformanceReportRequestErrorException()
128
    {
129
        $this->expectException(Exceptions\ReportRequestErrorException::class);
130
        $apiClient = $this->getApiClient(
131
            $this->getRequestNewAccessTokenMock(),
132
            new ApiDetails('refreshToken', 'clientId', 'clientSecret', 'redirectUri', 'devToken'),
133
            $this->getClientProxyMock('Error'),
134
            new Helper\File(),
135
            new Helper\Csv(),
136
            $this->getTimeHelperMock()
137
        );
138
        $apiClient->get(['TimePeriod', 'AccountName', 'AdGroupId'], 'GeoLocationPerformanceReport');
139
    }
140
141
    public function testPollGenerateReportSoapException()
142
    {