Skip to content

Commit b532d99

Browse files
author
Kyra Farrow
committed
Merge branch '4.2' into 4.3
* 4.2: Use willReturn() instead of will(returnValue()).
1 parent 85e53d5 commit b532d99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Exception/HttpExceptionTraitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ public function testParseError(string $mimeType, string $json): void
3535
$response = $this->createMock(ResponseInterface::class);
3636
$response
3737
->method('getInfo')
38-
->will($this->returnValueMap([
38+
->willReturnMap([
3939
['http_code', 400],
4040
['url', 'http://example.com'],
4141
['response_headers', [
4242
'HTTP/1.1 400 Bad Request',
4343
'Content-Type: '.$mimeType,
4444
]],
45-
]));
45+
]);
4646
$response->method('getContent')->willReturn($json);
4747

4848
$e = new TestException($response);

0 commit comments

Comments
 (0)