mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-29 14:48:52 +03:00
4f75591060
Reformat code base to PSR12 Co-authored-by: rssbridge <noreply@github.com>
31 lines
781 B
PHP
31 lines
781 B
PHP
<?php
|
|
|
|
/**
|
|
* MrssFormat - RSS 2.0 + Media RSS
|
|
* http://www.rssboard.org/rss-specification
|
|
* http://www.rssboard.org/media-rss
|
|
*/
|
|
|
|
namespace RssBridge\Tests\Formats;
|
|
|
|
require_once __DIR__ . '/BaseFormatTest.php';
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class MrssFormatTest extends BaseFormatTest
|
|
{
|
|
private const PATH_EXPECTED = self::PATH_SAMPLES . 'expectedMrssFormat/';
|
|
|
|
/**
|
|
* @dataProvider sampleProvider
|
|
* @runInSeparateProcess
|
|
*/
|
|
public function testOutput(string $name, string $path)
|
|
{
|
|
$data = $this->formatData('Mrss', $this->loadSample($path));
|
|
$this->assertNotFalse(simplexml_load_string($data));
|
|
|
|
$expected = self::PATH_EXPECTED . $name . '.xml';
|
|
$this->assertXmlStringEqualsXmlFile($expected, $data);
|
|
}
|
|
}
|