Page MenuHomeDevCentral

BaseReportEntryTest.php
No OneTemporary

BaseReportEntryTest.php

<?php
namespace Nasqueron\Notifications\Tests\Config\Reporting;
use Nasqueron\Notifications\Config\Reporting\BaseReportEntry;
use Nasqueron\Notifications\Tests\TestCase;
class BaseReportEntryTest extends TestCase {
public function testFancyString() {
$this->assertSame('ø', BaseReportEntry::fancyString('', 'ø'));
$this->assertSame('ø', BaseReportEntry::fancyString('ø', 'ø'));
$this->assertSame('o', BaseReportEntry::fancyString('o', 'ø'));
$this->assertSame('', BaseReportEntry::fancyString('', ''));
}
public function testFancyBool() {
$this->assertSame('ø', BaseReportEntry::fancyBool(false, '✓', 'ø'));
$this->assertSame('✓', BaseReportEntry::fancyBool(true, '✓', 'ø'));
$this->assertSame('', BaseReportEntry::fancyBool(false, '✓'));
$this->assertSame('✓', BaseReportEntry::fancyBool(true, '✓'));
$this->assertSame('', BaseReportEntry::fancyBool(true, '', ''));
$this->assertSame('', BaseReportEntry::fancyBool(false, '', ''));
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, May 17, 19:19 (1 d, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3683579
Default Alt Text
BaseReportEntryTest.php (1 KB)

Event Timeline