Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120823701
WalletTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
623 B
Referenced Files
None
Subscribers
None
WalletTest.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline