Skip to content

Commit

Permalink
Merge pull request #55 from shweshi/analysis-OMrJmJ
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
shweshi authored Jun 2, 2020
2 parents 465cca0 + ee8ca95 commit db6fdf0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/OpenGraphTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public function testFetchAllMetadata()
{
$opengraph = new OpenGraph();
$data = $opengraph->fetch(
'https://www.ogp.me/', true
'https://www.ogp.me/',
true
);
$this->assertArrayHasKey('title', $data);
$this->assertArrayHasKey('description', $data);
Expand All @@ -41,7 +42,7 @@ public function testFetchReturnsEmptyArrayForWebsiteWithNoMetadata()
{
$opengraph = new OpenGraph();
$data = $opengraph->fetch(
'https://www.example.com/'
'https://www.example.com/'
);

$this->assertEmpty($data);
Expand All @@ -52,7 +53,8 @@ public function testFetchMustacheMetasData()
{
$opengraph = new OpenGraph();
$data = $opengraph->fetch(
'https://raw.githubusercontent.com/jurgenbosch/OpenGraph/master/tests/__mocks__/angular-headers.html', true
'https://raw.githubusercontent.com/jurgenbosch/OpenGraph/master/tests/__mocks__/angular-headers.html',
true
);
$this->assertArrayHasKey('title', $data);
$this->assertArrayHasKey('description', $data);
Expand All @@ -65,7 +67,8 @@ public function testFetchNonAsciiImageUrlData()
{
$opengraph = new OpenGraph();
$data = $opengraph->fetch(
'https://unitedwithisrael.org/iranians-fall-in-love-with-israel-as-netanyahu-reaches-out-in-persian/', true
'https://unitedwithisrael.org/iranians-fall-in-love-with-israel-as-netanyahu-reaches-out-in-persian/',
true
);
$this->assertArrayHasKey('title', $data);
$this->assertArrayHasKey('description', $data);
Expand Down

0 comments on commit db6fdf0

Please sign in to comment.