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