Code Duplication    Length = 13-13 lines in 2 locations

Tests/Api/Report/GeoLocationPerformanceReportTest.php 2 locations

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