mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-24 07:56:45 +00:00
6afd13eb06
* fix: bug in prior commit * refactor: deprecate FeedItem constructor * test: fix
20 lines
338 B
PHP
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());
|
|
}
|
|
}
|