GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 13-13 lines in 7 locations

Tests/Unit/Library/AddressValidationTest.php 1 location

@@ 73-85 (lines=13) @@
70
     * when: getResponseIsCalled
71
     * should: callUpsAddressValidationGetResponseMethod.
72
     */
73
    public function testAddressValidationGetResponseMethodIsCalled()
74
    {
75
        $responseMock = $this->getMock('Ups\Response');
76
        $this
77
            ->addressValidationMock
78
            ->method('getResponse')
79
            ->willReturn($responseMock);
80
81
        $sut = new AddressValidationWrapper($this->addressValidationMock);
82
        $sut->setResponse($responseMock);
83
        $response = $sut->getResponse();
84
        $this->assertInstanceOf('Ups\Response', $response);
85
    }
86
}
87

Tests/Unit/Library/LocatorTest.php 2 locations

@@ 54-66 (lines=13) @@
51
     * when: getRequestIsCalled
52
     * should: callUpsLocatorGetRequestMethod.
53
     */
54
    public function testUpsLocatorGetRequestMethodIsCalled()
55
    {
56
        $requestMock = $this->getMock('Ups\Request');
57
        $this
58
            ->locatorMock
59
            ->method('getRequest')
60
            ->willReturn($requestMock);
61
62
        $sut = new LocatorWrapper($this->locatorMock);
63
        $sut->setRequest($requestMock);
64
        $request = $sut->getRequest();
65
        $this->assertInstanceOf('Ups\Request', $request);
66
    }
67
68
    /**
69
     * when: getResponseIsCalled
@@ 72-84 (lines=13) @@
69
     * when: getResponseIsCalled
70
     * should: callUpsLocatorGetResponseMethod.
71
     */
72
    public function testUpsLocatorGetResponseMethodIsCalled()
73
    {
74
        $responseMock = $this->getMock('Ups\Response');
75
        $this
76
            ->locatorMock
77
            ->method('getResponse')
78
            ->willReturn($responseMock);
79
80
        $sut = new LocatorWrapper($this->locatorMock);
81
        $sut->setResponse($responseMock);
82
        $response = $sut->getResponse();
83
        $this->assertInstanceOf('Ups\Response', $response);
84
    }
85
}
86

Tests/Unit/Library/QuantumViewTest.php 1 location

@@ 135-147 (lines=13) @@
132
     * when: getResponseIsCalled
133
     * should: callUpsGetResponseMethod.
134
     */
135
    public function testQuantumViewGetResponseMethodIsCalled()
136
    {
137
        $responseMock = $this->getMock('Ups\Response');
138
        $this
139
            ->quantumViewMock
140
            ->method('getResponse')
141
            ->willReturn($responseMock);
142
143
        $sut = new QuantumViewWrapper($this->quantumViewMock);
144
        $sut->setResponse($responseMock);
145
        $response = $sut->getResponse();
146
        $this->assertInstanceOf('Ups\Response', $response);
147
    }
148
}
149

Tests/Unit/Library/RateTest.php 1 location

@@ 83-95 (lines=13) @@
80
     * when: getResponseIsCalled
81
     * should: callUpsRateGetResponseMethod.
82
     */
83
    public function testRateGetResponseMethodIsCalled()
84
    {
85
        $responseMock = $this->getMock('Ups\Response');
86
        $this
87
            ->rateMock
88
            ->method('getResponse')
89
            ->willReturn($responseMock);
90
91
        $sut = new RateWrapper($this->rateMock);
92
        $sut->setResponse($responseMock);
93
        $response = $sut->getResponse();
94
        $this->assertInstanceOf('Ups\Response', $response);
95
    }
96
}
97

Tests/Unit/Library/TimeInTransitTest.php 1 location

@@ 67-79 (lines=13) @@
64
     * when: getResponseIsCalled
65
     * should: callUpsTimeInTransitGetResponseMethod.
66
     */
67
    public function testTimeInTransitGetResponseMethodIsCalled()
68
    {
69
        $responseMock = $this->getMock('Ups\Response');
70
        $this
71
            ->timeInTransitMock
72
            ->method('getResponse')
73
            ->willReturn($responseMock);
74
75
        $sut = new TimeInTransitWrapper($this->timeInTransitMock);
76
        $sut->setResponse($responseMock);
77
        $response = $sut->getResponse();
78
        $this->assertInstanceOf('Ups\Response', $response);
79
    }
80
}
81

Tests/Unit/Library/TrackingTest.php 1 location

@@ 98-110 (lines=13) @@
95
     * when: getResponseIsCalled
96
     * should: callUpsTrackingGetResponseMethod.
97
     */
98
    public function testTrackingGetResponseMethodIsCalled()
99
    {
100
        $responseMock = $this->getMock('Ups\Response');
101
        $this
102
            ->trackingMock
103
            ->method('getResponse')
104
            ->willReturn($responseMock);
105
106
        $sut = new TrackingWrapper($this->trackingMock);
107
        $sut->setResponse($responseMock);
108
        $response = $sut->getResponse();
109
        $this->assertInstanceOf('Ups\Response', $response);
110
    }
111
}
112