Code Duplication    Length = 13-13 lines in 2 locations

Tests/Message/GetClassifierRequestTest.php 1 location

@@ 94-106 (lines=13) @@
91
     *
92
     * @expectedException \Bobbyshaw\WatsonVisualRecognition\Exceptions\AuthException
93
     */
94
    public function testGetClassifierFailedAuthResponse()
95
    {
96
        $container = [];
97
        $response = $this->getMockHttpResponse('FailedAuth.txt', 401);
98
        $httpClient = $this->getMockHttpClientWithHistoryAndResponses($container, [$response]);
99
100
        $this->client = new Client($httpClient);
101
        $this->client->initialize(['username' => $this->username, 'password' => $this->password]);
102
103
        /** @var GetClassifierRequest $request */
104
        $request = $this->client->getClassifier(['classifier_id' => $this->classifierId]);
105
        $request->send();
106
    }
107
}
108

Tests/Message/GetClassifiersRequestTest.php 1 location

@@ 106-118 (lines=13) @@
103
     *
104
     * @expectedException \Bobbyshaw\WatsonVisualRecognition\Exceptions\AuthException
105
     */
106
    public function testGetClassifiersFailedAuthResponse()
107
    {
108
        $container = [];
109
        $response = $this->getMockHttpResponse('FailedAuth.txt', 401);
110
        $httpClient = $this->getMockHttpClientWithHistoryAndResponses($container, [$response]);
111
112
        $this->client = new Client($httpClient);
113
        $this->client->initialize(['username' => $this->username, 'password' => $this->password]);
114
115
        /** @var GetClassifiersRequest $request */
116
        $request = $this->client->getClassifiers();
117
        $request->send();
118
    }
119
120
    public function testGetClassifiersVerbose()
121
    {