File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
test/Gitlab/Tests/HttpClient Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,24 +22,24 @@ class BuilderTest extends \PHPUnit_Framework_TestCase
22
22
public function setUp ()
23
23
{
24
24
$ this ->subject = new Builder (
25
- $ this ->createMock (HttpClient::class),
26
- $ this ->createMock (RequestFactory::class),
27
- $ this ->createMock (StreamFactory::class)
25
+ $ this ->getMockBuilder (HttpClient::class)-> getMock ( ),
26
+ $ this ->getMockBuilder (RequestFactory::class)-> getMock ( ),
27
+ $ this ->getMockBuilder (StreamFactory::class)-> getMock ( )
28
28
);
29
29
}
30
30
31
31
public function testAddPluginShouldInvalidateHttpClient ()
32
32
{
33
33
$ client = $ this ->subject ->getHttpClient ();
34
34
35
- $ this ->subject ->addPlugin ($ this ->createMock (Plugin::class));
35
+ $ this ->subject ->addPlugin ($ this ->getMockBuilder (Plugin::class)-> getMock ( ));
36
36
37
37
$ this ->assertNotSame ($ client , $ this ->subject ->getHttpClient ());
38
38
}
39
39
40
40
public function testRemovePluginShouldInvalidateHttpClient ()
41
41
{
42
- $ this ->subject ->addPlugin ($ this ->createMock (Plugin::class));
42
+ $ this ->subject ->addPlugin ($ this ->getMockBuilder (Plugin::class)-> getMock ( ));
43
43
44
44
$ client = $ this ->subject ->getHttpClient ();
45
45
You can’t perform that action at this time.
0 commit comments