Skip to content

Commit

Permalink
Uincode character test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Sep 22, 2023
1 parent 5d38f14 commit 82fa4fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/Ease/Logger/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ public static function getTypeUnicodeSymbol($type, $color = true)
if ($color === true) {
switch ($type) {
case 'mail': // Envelope
$symbol = '✉';
$symbol = '✉';
break;
case 'warning': // Vykřičník v trojůhelníku
$symbol = '⚠';
$symbol = '⚠';
break;
case 'error': // Lebka
$symbol = '💀';
Expand All @@ -94,10 +94,10 @@ public static function getTypeUnicodeSymbol($type, $color = true)
$symbol = '🌼';
break;
case 'debug': // Gear
$symbol = '⚙';
$symbol = '⚙';
break;
case 'info':
$symbol = 'ℹ️';
$symbol = '';
break;
default: // i v kroužku
$symbol = '🤔';
Expand Down
12 changes: 6 additions & 6 deletions tests/src/Ease/Logger/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ public function testGetTypeUnicodeSymbol()
{
$this->assertEquals('✉', Message::getTypeUnicodeSymbol('mail',false));
$this->assertEquals('⚠', Message::getTypeUnicodeSymbol('warning',false));
$this->assertEquals('💀', Message::getTypeUnicodeSymbol('error',false));
$this->assertEquals('', Message::getTypeUnicodeSymbol('error',false));
$this->assertEquals('❁', Message::getTypeUnicodeSymbol('success',false));
$this->assertEquals('⚙', Message::getTypeUnicodeSymbol('debug',false));
$this->assertEquals('ⓘ', Message::getTypeUnicodeSymbol('info',false));
$this->assertEquals('🯄', Message::getTypeUnicodeSymbol('anythingelse',false));

$this->assertEquals('✉', Message::getTypeUnicodeSymbol('mail'));
$this->assertEquals('⚠', Message::getTypeUnicodeSymbol('warning'));
$this->assertEquals('☠️', Message::getTypeUnicodeSymbol('error'));
$this->assertEquals('✉', Message::getTypeUnicodeSymbol('mail'));
$this->assertEquals('⚠', Message::getTypeUnicodeSymbol('warning'));
$this->assertEquals('💀', Message::getTypeUnicodeSymbol('error'));
$this->assertEquals('🌼', Message::getTypeUnicodeSymbol('success'));
$this->assertEquals('⚙', Message::getTypeUnicodeSymbol('debug'));
$this->assertEquals('ℹ️', Message::getTypeUnicodeSymbol('info'));
$this->assertEquals('⚙', Message::getTypeUnicodeSymbol('debug'));
$this->assertEquals('', Message::getTypeUnicodeSymbol('info'));
$this->assertEquals('🤔', Message::getTypeUnicodeSymbol('anythingelse'));

}
Expand Down

0 comments on commit 82fa4fb

Please sign in to comment.