@@ -10,8 +10,8 @@ class ConfiguredClientsStrategyTest extends \PHPUnit_Framework_TestCase
1010{
1111 public function testGetCandidates ()
1212 {
13- $ httpClient = $ this ->getMock (HttpClient::class);
14- $ httpAsyncClient = $ this ->getMock (HttpAsyncClient::class);
13+ $ httpClient = $ this ->getMockBuilder (HttpClient::class)-> getMock ( );
14+ $ httpAsyncClient = $ this ->getMockBuilder (HttpAsyncClient::class)-> getMock ( );
1515 $ strategy = new ConfiguredClientsStrategy ($ httpClient , $ httpAsyncClient );
1616
1717 $ candidates = $ strategy ::getCandidates (HttpClient::class);
@@ -36,7 +36,7 @@ public function testGetCandidatesEmpty()
3636
3737 public function testGetCandidatesEmptyAsync ()
3838 {
39- $ httpClient = $ this ->getMock (HttpClient::class);
39+ $ httpClient = $ this ->getMockBuilder (HttpClient::class)-> getMock ( );
4040 $ strategy = new ConfiguredClientsStrategy ($ httpClient , null );
4141
4242 $ candidates = $ strategy ::getCandidates (HttpClient::class);
@@ -49,7 +49,7 @@ public function testGetCandidatesEmptyAsync()
4949
5050 public function testGetCandidatesEmptySync ()
5151 {
52- $ httpAsyncClient = $ this ->getMock (HttpAsyncClient::class);
52+ $ httpAsyncClient = $ this ->getMockBuilder (HttpAsyncClient::class)-> getMock ( );
5353 $ strategy = new ConfiguredClientsStrategy (null , $ httpAsyncClient );
5454
5555 $ candidates = $ strategy ::getCandidates (HttpClient::class);
0 commit comments