@@ -21,7 +21,7 @@ public function shouldPassGETRequestToClient()
2121 ->method ('get ' )
2222 ->with ('/path?param1=param1value ' , array ('header1 ' => 'header1value ' ))
2323 ->will ($ this ->returnValue ($ this ->getPSR7Response ($ expectedArray )));
24- $ client = $ this ->getMockBuilder (' Github\Client ' )
24+ $ client = $ this ->getMockBuilder (\ Github \Client::class )
2525 ->setMethods (array ('getHttpClient ' ))
2626 ->getMock ();
2727 $ 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 ())
@@ -76,7 +76,7 @@ public function shouldPassPATCHRequestToClient()
7676 ->with ('/path ' , array ('option1 ' => 'option1value ' ), json_encode (array ('param1 ' => 'param1value ' )))
7777 ->will ($ this ->returnValue ($ this ->getPSR7Response ($ expectedArray )));
7878
79- $ client = $ this ->getMockBuilder (' Github\Client ' )
79+ $ client = $ this ->getMockBuilder (\ Github \Client::class )
8080 ->setMethods (array ('getHttpClient ' ))
8181 ->getMock ();
8282 $ client ->expects ($ this ->any ())
@@ -158,7 +158,7 @@ public function shouldNotPassEmptyRefToClient()
158158 ->with ('/path ' , array ())
159159 ->will ($ this ->returnValue ($ this ->getPSR7Response ($ expectedArray )));
160160
161- $ client = $ this ->getMockBuilder (' Github\Client ' )
161+ $ client = $ this ->getMockBuilder (\ Github \Client::class )
162162 ->setMethods (array ('getHttpClient ' ))
163163 ->getMock ();
164164 $ client ->expects ($ this ->any ())
@@ -213,7 +213,7 @@ protected function getClientMock()
213213 protected function getHttpMethodsMock (array $ methods = array ())
214214 {
215215 $ methods = array_merge (array ('sendRequest ' ), $ methods );
216- $ mock = $ this ->getMockBuilder (' Http\Client\Common\HttpMethodsClient ' )
216+ $ mock = $ this ->getMockBuilder (\ Http \Client \Common \HttpMethodsClient::class )
217217 ->disableOriginalConstructor ()
218218 ->setMethods ($ methods )
219219 ->getMock ();
@@ -228,7 +228,7 @@ protected function getHttpMethodsMock(array $methods = array())
228228 */
229229 protected function getHttpClientMock ()
230230 {
231- $ mock = $ this ->getMockBuilder (' Http\Client\HttpClient ' )
231+ $ mock = $ this ->getMockBuilder (\ Http \Client \HttpClient::class )
232232 ->setMethods (array ('sendRequest ' ))
233233 ->getMock ();
234234 $ mock
0 commit comments