@@ -20,7 +20,7 @@ public function shouldPassGETRequestToClient()
2020 ->method ('get ' )
2121 ->with ('/path?param1=param1value ' , array ('header1 ' => 'header1value ' ))
2222 ->will ($ this ->returnValue ($ this ->getPSR7Response ($ expectedArray )));
23- $ client = $ this ->getMockBuilder (' Github\Client ' )
23+ $ client = $ this ->getMockBuilder (\ Github \Client::class )
2424 ->setMethods (array ('getHttpClient ' ))
2525 ->getMock ();
2626 $ client ->expects ($ this ->any ())
@@ -49,7 +49,7 @@ public function shouldPassPOSTRequestToClient()
4949 ->with ('/path ' , array ('option1 ' => 'option1value ' ), json_encode (array ('param1 ' => 'param1value ' )))
5050 ->will ($ this ->returnValue ($ this ->getPSR7Response ($ expectedArray )));
5151
52- $ client = $ this ->getMockBuilder (' Github\Client ' )
52+ $ client = $ this ->getMockBuilder (\ Github \Client::class )
5353 ->setMethods (array ('getHttpClient ' ))
5454 ->getMock ();
5555 $ client ->expects ($ this ->any ())
@@ -77,7 +77,7 @@ public function shouldPassPATCHRequestToClient()
7777 ->with ('/path ' , array ('option1 ' => 'option1value ' ), json_encode (array ('param1 ' => 'param1value ' )))
7878 ->will ($ this ->returnValue ($ this ->getPSR7Response ($ expectedArray )));
7979
80- $ client = $ this ->getMockBuilder (' Github\Client ' )
80+ $ client = $ this ->getMockBuilder (\ Github \Client::class )
8181 ->setMethods (array ('getHttpClient ' ))
8282 ->getMock ();
8383 $ client ->expects ($ this ->any ())
@@ -162,7 +162,7 @@ public function shouldNotPassEmptyRefToClient()
162162 ->with ('/path ' , array ())
163163 ->will ($ this ->returnValue ($ this ->getPSR7Response ($ expectedArray )));
164164
165- $ client = $ this ->getMockBuilder (' Github\Client ' )
165+ $ client = $ this ->getMockBuilder (\ Github \Client::class )
166166 ->setMethods (array ('getHttpClient ' ))
167167 ->getMock ();
168168 $ client ->expects ($ this ->any ())
@@ -212,7 +212,7 @@ protected function getClientMock()
212212 protected function getHttpMethodsMock (array $ methods = array ())
213213 {
214214 $ methods = array_merge (array ('sendRequest ' ), $ methods );
215- $ mock = $ this ->getMockBuilder (' Http\Client\Common\HttpMethodsClient ' )
215+ $ mock = $ this ->getMockBuilder (\ Http \Client \Common \HttpMethodsClient::class )
216216 ->disableOriginalConstructor ()
217217 ->setMethods ($ methods )
218218 ->getMock ();
@@ -227,7 +227,7 @@ protected function getHttpMethodsMock(array $methods = array())
227227 */
228228 protected function getHttpClientMock ()
229229 {
230- $ mock = $ this ->getMockBuilder (' Http\Client\HttpClient ' )
230+ $ mock = $ this ->getMockBuilder (\ Http \Client \HttpClient::class )
231231 ->setMethods (array ('sendRequest ' ))
232232 ->getMock ();
233233 $ mock
0 commit comments