Skip to content

Commit

Permalink
Update deps to fix issue parsing big5 content (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
webignition authored Mar 19, 2018
1 parent f0a3f4a commit 6eb22ce
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 56 deletions.
59 changes: 32 additions & 27 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 29 additions & 29 deletions tests/WebsiteRssFeedFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,41 +60,41 @@ public function testGetRssFeedUrls($httpFixtures, $expectedRssUrls)
public function getRssFeedUrlsDataProvider()
{
return [
// '404 retrieving root web page' => [
// 'httpFixtures' => [
// HttpFixtureFactory::createNotFoundResponse(),
// ],
// 'expectedRssUrls' => [],
// ],
// 'root web page not web page' => [
// 'httpFixtures' => [
// HttpFixtureFactory::createSuccessResponse('application/xml'),
// ],
// 'expectedRssUrls' => [],
// ],
'404 retrieving root web page' => [
'httpFixtures' => [
HttpFixtureFactory::createNotFoundResponse(),
],
'expectedRssUrls' => [],
],
'root web page not web page' => [
'httpFixtures' => [
HttpFixtureFactory::createSuccessResponse('application/xml'),
],
'expectedRssUrls' => [],
],
'no urls' => [
'httpFixtures' => [
HttpFixtureFactory::createSuccessResponse('text/html', HtmlDocumentFactory::load('empty')),
],
'expectedRssUrls' => [],
],
// 'single url' => [
// 'httpFixtures' => [
// HttpFixtureFactory::createSuccessResponse('text/html', HtmlDocumentFactory::load('single-rss')),
// ],
// 'expectedRssUrls' => [
// 'http://example.com/rss-1.xml',
// ],
// ],
// 'two urls' => [
// 'httpFixtures' => [
// HttpFixtureFactory::createSuccessResponse('text/html', HtmlDocumentFactory::load('two-rss')),
// ],
// 'expectedRssUrls' => [
// 'http://example.com/rss-1.xml',
// 'http://example.com/rss-2.xml',
// ],
// ],
'single url' => [
'httpFixtures' => [
HttpFixtureFactory::createSuccessResponse('text/html', HtmlDocumentFactory::load('single-rss')),
],
'expectedRssUrls' => [
'http://example.com/rss-1.xml',
],
],
'two urls' => [
'httpFixtures' => [
HttpFixtureFactory::createSuccessResponse('text/html', HtmlDocumentFactory::load('two-rss')),
],
'expectedRssUrls' => [
'http://example.com/rss-1.xml',
'http://example.com/rss-2.xml',
],
],
];
}

Expand Down

0 comments on commit 6eb22ce

Please sign in to comment.