Page MenuHomeDevCentral

ServiceReportEntryTest.php
No OneTemporary

ServiceReportEntryTest.php

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

Mime Type
text/x-php
Expires
Tue, Jul 29, 13:50 (19 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2831197
Default Alt Text
ServiceReportEntryTest.php (878 B)

Event Timeline