Skip to content

Commit a561739

Browse files
committed
Merge branch 'master' into issue-41-psr-18
# Conflicts: # tests/BaseUnitTestCase.php # tests/CurlPromiseTest.php # tests/Functional/HttpClientTestCase.php # tests/HttpAsyncClientTestCase.php
2 parents fa4feea + cc9e183 commit a561739

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
.gitattributes export-ignore
44
.gitignore export-ignore
55
.scrutinizer.yml export-ignore
6+
.styleci.yml export-ignore
7+
.php_cs.yml export-ignore
68
.travis.yml export-ignore
79
CONDUCT.md export-ignore
810
CONTRIBUTING.md export-ignore

tests/Unit/ClientTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ClientTest extends TestCase
2525
*/
2626
public function testExpectHeader(): void
2727
{
28-
$client = $this->getMockBuilder(Client::class)->disableOriginalConstructor()->getMock();
28+
$client = $this->createMock(Client::class);
2929

3030
$createHeaders = new \ReflectionMethod(Client::class, 'createHeaders');
3131
$createHeaders->setAccessible(true);
@@ -59,7 +59,7 @@ public function testWithNullPostFields(): void
5959

6060
public function testRewindStream(): void
6161
{
62-
$client = $this->getMockBuilder(Client::class)->disableOriginalConstructor()->getMock();
62+
$client = $this->createMock(Client::class);
6363

6464
$bodyOptions = new \ReflectionMethod(Client::class, 'addRequestBodyOptions');
6565
$bodyOptions->setAccessible(true);
@@ -74,7 +74,7 @@ public function testRewindStream(): void
7474

7575
public function testRewindLargeStream(): void
7676
{
77-
$client = $this->getMockBuilder(Client::class)->disableOriginalConstructor()->getMock();
77+
$client = $this->createMock(Client::class);
7878

7979
$bodyOptions = new \ReflectionMethod(Client::class, 'addRequestBodyOptions');
8080
$bodyOptions->setAccessible(true);

0 commit comments

Comments
 (0)