From ee8ca95b85a757cfecdb2f9bea70e03d85bba082 Mon Sep 17 00:00:00 2001 From: Shashi Prakash Gautam Date: Tue, 2 Jun 2020 20:09:37 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/OpenGraphTest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/OpenGraphTest.php b/tests/OpenGraphTest.php index e176515..30b3d6f 100644 --- a/tests/OpenGraphTest.php +++ b/tests/OpenGraphTest.php @@ -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); @@ -41,7 +42,7 @@ public function testFetchReturnsEmptyArrayForWebsiteWithNoMetadata() { $opengraph = new OpenGraph(); $data = $opengraph->fetch( - 'https://www.example.com/' + 'https://www.example.com/' ); $this->assertEmpty($data); @@ -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); @@ -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);