Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaishiyoku committed May 2, 2023
1 parent 9ece381 commit 2ba9e57
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
14 changes: 7 additions & 7 deletions tests/HelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@ public function testGetHttpContentTypeForUrl(string $faviconUrl, ?string $expect
$this->assertSame($expectedContentType, Helper::getHttpContentTypeForUrl($faviconUrl, new Client()));
}

protected function tearDown(): void
{
parent::tearDown();

$this->addToAssertionCount($this->failingTestClassMock->mockery_getExpectationCount());
}

public static function faviconProvider(): array
{
return [
Expand All @@ -84,4 +77,11 @@ public static function faviconProvider(): array
],
];
}

protected function tearDown(): void
{
parent::tearDown();

$this->addToAssertionCount($this->failingTestClassMock->mockery_getExpectationCount());
}
}
8 changes: 3 additions & 5 deletions tests/HeraRssCrawlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,9 @@ public static function websiteProvider(): array
'https://mainwebsite.wpenginepowered.com/favicon.png',
],
'React' => [
'https://facebook.github.io/react',
[
'https://facebook.github.io/react/feed.xml'
],
'https://facebook.github.io/react/favicon.ico',
'https://react.dev/blog',
[],
null,
],
'PHP Internals' => [
'https://phpinternals.news/',
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"title":"Videos | NutritionFacts.org","description":"The Latest in Nutrition Research","feedUrl":"https:\/\/nutritionfacts.org\/feed\/?post_type=video","id":"https:\/\/nutritionfacts.org","language":"en-US","url":"https:\/\/nutritionfacts.org"}
{"title":"Videos","description":"The Latest in Nutrition Research","feedUrl":"https:\/\/nutritionfacts.org\/feed\/?post_type=video","id":"https:\/\/nutritionfacts.org","language":"en-US","url":"https:\/\/nutritionfacts.org"}

0 comments on commit 2ba9e57

Please sign in to comment.