Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12742033
HTMLOutputTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
738 B
Referenced Files
None
Subscribers
None
HTMLOutputTest.php
View Options
<?php
namespace
Keruald\Reporting\Tests\Output
;
use
Keruald\Reporting\Output\HTMLOutput
;
use
Keruald\Reporting\Report
;
use
Keruald\Reporting\Tests\WithSampleReport
;
use
PHPUnit\Framework\TestCase
;
class
HTMLOutputTest
extends
TestCase
{
use
WithSampleReport
;
///
/// Initialization
//
public
Report
$report
;
protected
function
setUp
()
:
void
{
$this
->
report
=
$this
->
buildSampleReport
();
}
///
/// Tests
//
public
function
testRender
()
:
void
{
$actual
=
HTMLOutput
::
for
(
$this
->
report
)
->
render
();
$expected
=
file_get_contents
(
$this
->
getDataDir
()
.
"/report.html"
);
$this
->
assertEquals
(
$expected
,
$actual
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 16, 13:38 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3168038
Default Alt Text
HTMLOutputTest.php (738 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment