| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | 1 | protected function addItem(Feed $feed) |
|
| 55 | { |
||
| 56 | 1 | $item = new Item(); |
|
| 57 | |||
| 58 | 1 | $item->setPublicId('1'); |
|
| 59 | 1 | $item->setLink('https://raw.github.com/alexdebril/rss-atom-bundle/somelink'); |
|
| 60 | 1 | $item->setTitle('This is an item'); |
|
| 61 | 1 | $item->setDescription('this stream was generated using the MockProvider class'); |
|
| 62 | 1 | $item->setLastModified(new \DateTime()); |
|
| 63 | |||
| 64 | 1 | $feed->add($item); |
|
| 65 | |||
| 66 | 1 | return $feed; |
|
| 67 | } |
||
| 68 | } |
||
| 69 |