Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
erikaheidi committed Apr 14, 2023
1 parent 46194bd commit 7d42bd2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Curly.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ trait Curly
{
public function get(string $endpoint): TestCase
{
$client = $this->getCurly();
$client = $this->getCurly();
$response = $client->get($endpoint);

expect($response)->toBeArray()->toHaveKeys(['code', 'body']);
expect($response['code'])->toBe(200);
expect($response)->toBeArray()->toHaveKeys(['code', 'body'])
->and($response['code'])->toBe(200);

return $this;
}

public function matchResponse(string $endpoint, int $code): TestCase
{
$client = $this->getCurly();
$client = $this->getCurly();
$response = $client->get($endpoint);

expect($response)->toBeArray()->toHaveKeys(['code', 'body']);
expect($response['code'])->toBe($code);
expect($response)->toBeArray()->toHaveKeys(['code', 'body'])
->and($response['code'])->toBe($code);

return $this;
}

public function responseContains(string $endpoint, string $needle): TestCase
{
$client = $this->getCurly();
$client = $this->getCurly();
$response = $client->get($endpoint);

expect($response)->toBeArray()->toHaveKeys(['code', 'body']);
Expand Down

0 comments on commit 7d42bd2

Please sign in to comment.