File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tests/Omnipay/Common/Message Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ public function getAmountInteger()
383
383
$ money = $ this ->getMoney ();
384
384
385
385
if ($ money !== null ) {
386
- return $ money ->getAmount ();
386
+ return ( int ) $ money ->getAmount ();
387
387
}
388
388
}
389
389
Original file line number Diff line number Diff line change @@ -191,14 +191,14 @@ public function testGetAmountNoDecimalsRounding()
191
191
public function testGetAmountInteger ()
192
192
{
193
193
$ this ->assertSame ($ this ->request , $ this ->request ->setAmount ('13.66 ' ));
194
- $ this ->assertSame (' 1366 ' , $ this ->request ->getAmountInteger ());
194
+ $ this ->assertSame (1366 , $ this ->request ->getAmountInteger ());
195
195
}
196
196
197
197
public function testGetAmountIntegerNoDecimals ()
198
198
{
199
199
$ this ->assertSame ($ this ->request , $ this ->request ->setCurrency ('JPY ' ));
200
200
$ this ->assertSame ($ this ->request , $ this ->request ->setAmount ('1366 ' ));
201
- $ this ->assertSame (' 1366 ' , $ this ->request ->getAmountInteger ());
201
+ $ this ->assertSame (1366 , $ this ->request ->getAmountInteger ());
202
202
}
203
203
204
204
/**
You can’t perform that action at this time.
0 commit comments