Code Duplication    Length = 11-11 lines in 2 locations

tests/OptimizelyPHPTest/Service/v2/ExperimentsTest.php 2 locations

@@ 269-279 (lines=11) @@
266
    /**
267
     * @expectedException Exception
268
     */
269
    public function testGet_NotIntegerExperimentId()
270
    {
271
        // Mock 'OptimizelyApiClient' object to avoid real API calls
272
        $optimizelyApiClientMock = $this->getMockBuilder('\WebMarketingROI\OptimizelyPHP\OptimizelyApiClient')
273
                            ->disableOriginalConstructor()
274
                            ->getMock();
275
        
276
        $experimentsService = new Experiments($optimizelyApiClientMock);
277
        
278
        $result = $experimentsService->get('1');
279
    }
280
    
281
    /**
282
     * @expectedException Exception
@@ 284-294 (lines=11) @@
281
    /**
282
     * @expectedException Exception
283
     */
284
    public function testGet_NegativeExperimentId()
285
    {
286
        // Mock 'OptimizelyApiClient' object to avoid real API calls
287
        $optimizelyApiClientMock = $this->getMockBuilder('\WebMarketingROI\OptimizelyPHP\OptimizelyApiClient')
288
                            ->disableOriginalConstructor()
289
                            ->getMock();
290
        
291
        $experimentsService = new Experiments($optimizelyApiClientMock);
292
        
293
        $result = $experimentsService->get(-1);
294
    }
295
    
296
    public function testGetResults()
297
    {