public function CorrectlyConvertsFloatAmountsToInteger($string, $integer) { $paymentResponse = new EcommercePaymentResponse(array('amount' => $string, 'shasign' => '123')); $this->assertEquals($integer, $paymentResponse->getParam('amount')); }