Skip to content

Commit

Permalink
Adding test in Support/SupportNumberTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Trudel committed Jan 11, 2025
1 parent 0bfa19c commit 1ad958a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Support/SupportNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ public function testToCurrencyWithDifferentLocale()
$this->assertSame('1 234,56 $US', Number::currency(1234.56, 'USD', 'fr'));
}

public function testToCurrencyInCents()
{
$this->assertSame('$15.00', Number::currency(1500, 'USD', 'en', true));
}

public function testBytesToHuman()
{
$this->assertSame('0 B', Number::fileSize(0));
Expand Down

0 comments on commit 1ad958a

Please sign in to comment.