@@ -30,7 +30,7 @@ public function testPay(): void
3030 self ::assertSame (0 , $ buyer ->balanceInt );
3131 $ buyer ->deposit ($ product ->getAmountProduct ($ buyer ));
3232
33- self ::assertSame ($ buyer ->balanceInt , ( int ) $ product ->getAmountProduct ($ buyer ));
33+ self ::assertSame ($ buyer ->balanceInt , $ product ->getAmountProduct ($ buyer ));
3434 $ transfer = $ buyer ->pay ($ product );
3535 self ::assertNotNull ($ transfer );
3636 self ::assertSame (Transfer::STATUS_PAID , $ transfer ->status );
@@ -72,7 +72,7 @@ public function testItemTransactions(): void
7272 self ::assertSame (0 , $ buyer ->balanceInt );
7373 $ buyer ->deposit ($ product ->getAmountProduct ($ buyer ));
7474
75- self ::assertSame ($ buyer ->balanceInt , ( int ) $ product ->getAmountProduct ($ buyer ));
75+ self ::assertSame ($ buyer ->balanceInt , $ product ->getAmountProduct ($ buyer ));
7676 $ transfer = $ buyer ->pay ($ product );
7777 self ::assertNotNull ($ transfer );
7878 self ::assertSame (Transfer::STATUS_PAID , $ transfer ->status );
@@ -109,35 +109,35 @@ public function testRefund(): void
109109 self ::assertSame (0 , $ buyer ->balanceInt );
110110 $ buyer ->deposit ($ product ->getAmountProduct ($ buyer ));
111111
112- self ::assertSame ($ buyer ->balanceInt , ( int ) $ product ->getAmountProduct ($ buyer ));
112+ self ::assertSame ($ buyer ->balanceInt , $ product ->getAmountProduct ($ buyer ));
113113 $ transfer = $ buyer ->pay ($ product );
114114 self ::assertNotNull ($ transfer );
115115 self ::assertSame (Transfer::STATUS_PAID , $ transfer ->status );
116116
117117 self ::assertSame ((int ) $ transfer ->discount , $ product ->getPersonalDiscount ($ buyer ));
118118
119119 self ::assertTrue ($ buyer ->refund ($ product ));
120- self ::assertSame ($ buyer ->balanceInt , ( int ) $ product ->getAmountProduct ($ buyer ));
120+ self ::assertSame ($ buyer ->balanceInt , $ product ->getAmountProduct ($ buyer ));
121121 self ::assertSame (0 , $ product ->balanceInt );
122122
123123 $ transfer ->refresh ();
124124 self ::assertSame (Transfer::STATUS_REFUND , $ transfer ->status );
125125
126126 self ::assertFalse ($ buyer ->safeRefund ($ product ));
127- self ::assertSame ($ buyer ->balanceInt , ( int ) $ product ->getAmountProduct ($ buyer ));
127+ self ::assertSame ($ buyer ->balanceInt , $ product ->getAmountProduct ($ buyer ));
128128
129129 $ transfer = $ buyer ->pay ($ product );
130130 self ::assertNotNull ($ transfer );
131131 self ::assertSame ($ buyer ->balanceInt , $ product ->getPersonalDiscount ($ buyer ));
132132 self ::assertSame (
133133 $ product ->balanceInt ,
134- ( int ) ( $ product ->getAmountProduct ($ buyer ) - $ product ->getPersonalDiscount ($ buyer) )
134+ $ product ->getAmountProduct ($ buyer ) - $ product ->getPersonalDiscount ($ buyer )
135135 );
136136
137137 self ::assertSame (Transfer::STATUS_PAID , $ transfer ->status );
138138
139139 self ::assertTrue ($ buyer ->refund ($ product ));
140- self ::assertSame ($ buyer ->balanceInt , ( int ) $ product ->getAmountProduct ($ buyer ));
140+ self ::assertSame ($ buyer ->balanceInt , $ product ->getAmountProduct ($ buyer ));
141141 self ::assertSame (0 , $ product ->balanceInt );
142142
143143 $ transfer ->refresh ();
@@ -156,14 +156,14 @@ public function testForceRefund(): void
156156 self ::assertSame (0 , $ buyer ->balanceInt );
157157 $ buyer ->deposit ($ product ->getAmountProduct ($ buyer ));
158158
159- self ::assertSame ($ buyer ->balanceInt , ( int ) $ product ->getAmountProduct ($ buyer ));
159+ self ::assertSame ($ buyer ->balanceInt , $ product ->getAmountProduct ($ buyer ));
160160
161161 $ transfer = $ buyer ->pay ($ product );
162162 self ::assertSame ($ buyer ->balanceInt , $ product ->getPersonalDiscount ($ buyer ));
163163
164164 self ::assertSame (
165165 $ product ->balanceInt ,
166- ( int ) ( $ product ->getAmountProduct ($ buyer ) - $ product ->getPersonalDiscount ($ buyer) )
166+ $ product ->getAmountProduct ($ buyer ) - $ product ->getPersonalDiscount ($ buyer )
167167 );
168168
169169 self ::assertSame ((int ) $ transfer ->discount , $ product ->getPersonalDiscount ($ buyer ));
@@ -176,10 +176,10 @@ public function testForceRefund(): void
176176
177177 self ::assertSame (
178178 $ product ->balanceInt ,
179- ( int ) -($ product ->getAmountProduct ($ buyer ) - $ product ->getPersonalDiscount ($ buyer ))
179+ -($ product ->getAmountProduct ($ buyer ) - $ product ->getPersonalDiscount ($ buyer ))
180180 );
181181
182- self ::assertSame ($ buyer ->balanceInt , ( int ) $ product ->getAmountProduct ($ buyer ));
182+ self ::assertSame ($ buyer ->balanceInt , $ product ->getAmountProduct ($ buyer ));
183183 $ product ->deposit (-$ product ->balanceInt );
184184 $ buyer ->withdraw ($ buyer ->balance );
185185
@@ -219,7 +219,7 @@ public function testForcePay(): void
219219
220220 self ::assertSame (
221221 $ buyer ->balanceInt ,
222- ( int ) -($ product ->getAmountProduct ($ buyer ) - $ product ->getPersonalDiscount ($ buyer ))
222+ -($ product ->getAmountProduct ($ buyer ) - $ product ->getPersonalDiscount ($ buyer ))
223223 );
224224
225225 $ buyer ->deposit (-$ buyer ->balanceInt );
0 commit comments