Page MenuHomeDevCentral

XMLOutputTest.php
No OneTemporary

XMLOutputTest.php

<?php
namespace Keruald\Reporting\Tests\Output;
use Keruald\Reporting\Output\XMLOutput;
use Keruald\Reporting\Report;
use Keruald\Reporting\Tests\WithSampleReport;
use PHPUnit\Framework\TestCase;
class XMLOutputTest extends TestCase {
use WithSampleReport;
///
/// Tests
//
/**
* @dataProvider provideSampleReports
*/
public function testRender (string $name, Report $report) : void {
$actual = XMLOutput::for($report)->render();
$expected = file_get_contents($this->getDataDir() . "/$name.xml");
$this->assertEquals($expected, $actual);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Oct 12, 05:23 (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3064581
Default Alt Text
XMLOutputTest.php (615 B)

Event Timeline