0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2024-11-24 07:56:45 +00:00
RSS-Bridge_rss-bridge/tests/FeedItemTest.php
Dag 6afd13eb06
refactor: deprecate FeedItem constructor (#4201)
* fix: bug in prior commit

* refactor: deprecate FeedItem constructor

* test: fix
2024-08-08 03:43:26 +02:00

20 lines
338 B
PHP

<?php
declare(strict_types=1);
namespace RssBridge\Tests;
use PHPUnit\Framework\TestCase;
class FeedItemTest extends TestCase
{
public function test()
{
$item = [
'title' => 'kek',
];
$feedItem = \FeedItem::fromArray($item);
$this->assertSame('kek', $feedItem->getTitle());
}
}