File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
.gitattributes export-ignore
4
4
.gitignore export-ignore
5
5
.scrutinizer.yml export-ignore
6
+ .styleci.yml export-ignore
7
+ .php_cs.yml export-ignore
6
8
.travis.yml export-ignore
7
9
CONDUCT.md export-ignore
8
10
CONTRIBUTING.md export-ignore
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class ClientTest extends TestCase
25
25
*/
26
26
public function testExpectHeader (): void
27
27
{
28
- $ client = $ this ->getMockBuilder (Client::class)-> disableOriginalConstructor ()-> getMock ( );
28
+ $ client = $ this ->createMock (Client::class);
29
29
30
30
$ createHeaders = new \ReflectionMethod (Client::class, 'createHeaders ' );
31
31
$ createHeaders ->setAccessible (true );
@@ -59,7 +59,7 @@ public function testWithNullPostFields(): void
59
59
60
60
public function testRewindStream (): void
61
61
{
62
- $ client = $ this ->getMockBuilder (Client::class)-> disableOriginalConstructor ()-> getMock ( );
62
+ $ client = $ this ->createMock (Client::class);
63
63
64
64
$ bodyOptions = new \ReflectionMethod (Client::class, 'addRequestBodyOptions ' );
65
65
$ bodyOptions ->setAccessible (true );
@@ -74,7 +74,7 @@ public function testRewindStream(): void
74
74
75
75
public function testRewindLargeStream (): void
76
76
{
77
- $ client = $ this ->getMockBuilder (Client::class)-> disableOriginalConstructor ()-> getMock ( );
77
+ $ client = $ this ->createMock (Client::class);
78
78
79
79
$ bodyOptions = new \ReflectionMethod (Client::class, 'addRequestBodyOptions ' );
80
80
$ bodyOptions ->setAccessible (true );
You can’t perform that action at this time.
0 commit comments