-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
69 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/* | ||
* This file is part of the feed-io package. | ||
* | ||
* (c) Alexandre Debril <alex.debril@gmail.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace FeedIo\Reader; | ||
|
||
use FeedIo\Adapter\NullResponse; | ||
use FeedIo\Adapter\ResponseInterface; | ||
use FeedIo\Feed; | ||
|
||
class ResultMockFactory | ||
{ | ||
public function make(): Result | ||
{ | ||
return $this->makeWithFeed(new Feed()); | ||
} | ||
|
||
public function makeWithFeed(Feed $feed): Result | ||
{ | ||
/** @var Document $document */ | ||
$document = new Document(''); | ||
/** @var ResponseInterface $response */ | ||
$response = new NullResponse(); | ||
|
||
return new Result($document, $feed, new \DateTime('@0'), $response, 'http://localhost/test.rss'); | ||
} | ||
} |