miniflux-legacy/vendor/fguillot/picofeed/tests/Parser/ItemTest.php

25 lines
506 B
PHP

<?php
namespace PicoFeed\Parser;
use PHPUnit_Framework_TestCase;
class ItemTest extends PHPUnit_Framework_TestCase
{
public function testLangRTL()
{
$item = new Item;
$item->language = 'fr_FR';
$this->assertFalse($item->isRTL());
$item->language = 'ur';
$this->assertTrue($item->isRTL());
$item->language = 'syr-**';
$this->assertTrue($item->isRTL());
$item->language = 'ru';
$this->assertFalse($item->isRTL());
}
}