Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 50-60 (lines=11) @@
47
    /**
48
     * @expectedException Exception
49
     */
50
    public function testListAll_InvalidPage()
51
    {
52
        // Mock 'OptimizelyApiClient' object to avoid real API calls
53
        $optimizelyApiClientMock = $this->getMockBuilder('\WebMarketingROI\OptimizelyPHP\OptimizelyApiClient')
54
                            ->disableOriginalConstructor()
55
                            ->getMock();
56
        
57
        $attributesService = new Attributes($optimizelyApiClientMock);
58
        
59
        $result = $attributesService->listAll(1000, -1, 25);
60
    }
61
    
62
    /**
63
     * @expectedException Exception
@@ 65-75 (lines=11) @@
62
    /**
63
     * @expectedException Exception
64
     */
65
    public function testListAll_InvalidPerPage()
66
    {
67
        // Mock 'OptimizelyApiClient' object to avoid real API calls
68
        $optimizelyApiClientMock = $this->getMockBuilder('\WebMarketingROI\OptimizelyPHP\OptimizelyApiClient')
69
                            ->disableOriginalConstructor()
70
                            ->getMock();
71
        
72
        $attributesService = new Attributes($optimizelyApiClientMock);
73
        
74
        $result = $attributesService->listAll(1000, 1, 1000);
75
    }
76
    
77
    public function testGet()
78
    {