Page MenuHomeDevCentral

FeatureReportEntryTest.php
No OneTemporary

FeatureReportEntryTest.php

<?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

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)

Event Timeline