Skip to content

Commit

Permalink
Coding standard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
keatliang2005 authored and rez1dent3 committed Jul 28, 2022
1 parent 1ecdf11 commit abffeea
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/Units/Domain/TransactionAmountFloatAccessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ public function testTransactionAmountFloatAccessor(): void
$twoDecimalTransaction = $twoDecimalWallet->depositFloat($amountTwoDecimal);

self::assertNotNull($twoDecimalTransaction);
self::assertSame($amountTwoDecimal, (float) $twoDecimalTransaction->amountFloat, 'amount float is same decimal places');
self::assertSame(
$amountTwoDecimal,
(float) $twoDecimalTransaction->amountFloat,
'amount float is same decimal places'
);

// four decimal
$fourDecimalWallet = $user->createWallet([
Expand All @@ -45,6 +49,10 @@ public function testTransactionAmountFloatAccessor(): void
$fourDecimalTransaction = $fourDecimalWallet->depositFloat($amountFourDecimal);

self::assertNotNull($fourDecimalTransaction);
self::assertSame($amountFourDecimal, (float) $fourDecimalTransaction->amountFloat, 'amount float is same decimal places');
self::assertSame(
$amountFourDecimal,
(float) $fourDecimalTransaction->amountFloat,
'amount float is same decimal places'
);
}
}

0 comments on commit abffeea

Please sign in to comment.