Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12742277
FeatureReportEntryTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
FeatureReportEntryTest.php
View Options
<?php
namespace
Nasqueron\Notifications\Tests\Config\Reporting
;
use
Nasqueron\Notifications\Config\Reporting\FeatureReportEntry
;
use
Nasqueron\Notifications\Tests\TestCase
;
class
FeatureReportEntryTest
extends
TestCase
{
/**
* @var FeatureReportEntry
*/
private
$enabledFeatureEntry
;
/**
* @var FeatureReportEntry
*/
private
$disabledFeatureEntry
;
public
function
setUp
()
{
$this
->
enabledFeatureEntry
=
new
FeatureReportEntry
(
"foo"
,
true
);
$this
->
disabledFeatureEntry
=
new
FeatureReportEntry
(
"bar"
,
false
);
}
public
function
testToArray
()
{
$this
->
assertSame
(
[
"foo"
,
(
string
)
true
],
$this
->
enabledFeatureEntry
->
toArray
()
);
$this
->
assertSame
(
[
"bar"
,
(
string
)
false
],
$this
->
disabledFeatureEntry
->
toArray
()
);
}
public
function
testToFancyArray
()
{
$this
->
assertSame
(
[
"foo"
,
"✓"
],
$this
->
enabledFeatureEntry
->
toFancyArray
()
);
$this
->
assertSame
(
[
"bar"
,
""
],
$this
->
disabledFeatureEntry
->
toFancyArray
()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 16, 13:44 (15 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3144451
Default Alt Text
FeatureReportEntryTest.php (1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment