Page MenuHomePhorge

WalletTest.php
No OneTemporary

Authored By
Unknown
Size
623 B
Referenced Files
None
Subscribers
None

WalletTest.php

<?php
namespace Tests\Unit;
use App\Wallet;
use Tests\TestCase;
class WalletTest extends TestCase
{
/**
* Test Wallet::money()
*
* @return void
*/
public function testMoney()
{
// This test is here to remind us that the method will give
// different results for different locales
$wallet = new Wallet(['currency' => 'CHF']);
$money = $wallet->money(-123);
$this->assertSame('-1,23 CHF', $money);
$wallet = new Wallet(['currency' => 'EUR']);
$money = $wallet->money(-123);
$this->assertSame('-1,23 €', $money);
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 10:10 AM (4 d, 8 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5e/33/278b722357bab93ec967d10f58ab
Default Alt Text
WalletTest.php (623 B)

Event Timeline