Skip to content

Commit 63dfce8

Browse files
committed
simplify client mock
1 parent 4312039 commit 63dfce8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/Unit/Api/AbstractApiTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,7 @@ public function testGetLastResponseWithHttpClientWorks()
5656
{
5757
$client = $this->createMock(HttpClient::class);
5858

59-
$api = new class ($client) extends AbstractApi {
60-
public function __construct($client)
61-
{
62-
parent::__construct($client);
63-
parent::get('200.json', false);
64-
}
65-
};
59+
$api = new class ($client) extends AbstractApi {};
6660

6761
$method = new ReflectionMethod($api, 'getLastResponse');
6862
$method->setAccessible(true);

0 commit comments

Comments
 (0)