Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Jun 30, 2023
1 parent 93708dd commit aab060f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/BrowsershotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,29 @@
$list = Browsershot::url('http://www.spatie.be')
->redirectHistory();

$list = array_map(function($item) {unset($item['headers']); return $item;}, $list);
$list = array_map(function ($item) {
unset($item['headers']);

return $item;
}, $list);

expect($list)->toHaveCount(3);

$this->assertEquals([
[
'url' => 'http://www.spatie.be/',
'status' => 301,
'reason' => 'Moved Permanently'
'reason' => 'Moved Permanently',
],
[
'url' => 'https://www.spatie.be/',
'status' => 301,
'reason' => ''
'reason' => '',
],
[
'url' => 'https://spatie.be/',
'status' => 200,
'reason' => ''
'reason' => '',
],
], $list);
});
Expand Down

0 comments on commit aab060f

Please sign in to comment.