mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-18 08:54:20 +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());
|
|
}
|
|
}
|