Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56404037
ServiceReportEntryTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
878 B
Referenced Files
None
Subscribers
None
ServiceReportEntryTest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Config\Reporting
;
use
Nasqueron\Notifications\Config\Reporting\ServiceReportEntry
;
use
Nasqueron\Notifications\Config\Services\Service
;
use
Nasqueron\Notifications\Tests\TestCase
;
class
ServiceReportEntryTest
extends
TestCase
{
/**
* @var ServiceReportEntry
*/
private
$serviceEntry
;
public
function
setUp
()
{
$service
=
$this
->
mockService
();
$this
->
serviceEntry
=
new
ServiceReportEntry
(
$service
);
}
public
function
testToArray
()
{
$this
->
assertSame
(
[
"Storm"
,
"Acme"
,
"http://www.perdu.com"
,
""
],
$this
->
serviceEntry
->
toArray
()
);
}
public
function
testToFancyArray
()
{
$this
->
assertSame
(
[
"Storm"
,
"Acme"
,
"http://www.perdu.com"
,
"✓"
],
$this
->
serviceEntry
->
toFancyArray
()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 7, 20:33 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3918404
Default Alt Text
ServiceReportEntryTest.php (878 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment