Skip to content

Commit

Permalink
Simplify tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Apr 30, 2018
1 parent d7d2245 commit ed2e204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/MYRTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ public function it_can_be_initiated_using_given()
{
$money = MYR::given(500);

$this->assertSame('1000', $money->add($money)->getAmount());
$this->assertSame('500', $money->getAmount());
}

/** @test */
public function it_can_be_initiated_using_parse()
{
$money = MYR::parse('2.50');

$this->assertSame('500', $money->add($money)->getAmount());
$this->assertSame('250', $money->getAmount());
}

/** @test */
Expand Down

0 comments on commit ed2e204

Please sign in to comment.