public function testCurrency() { $price = 10.0; $priceHtml = '<span class="price">$10.00</span>'; $this->assertEquals($priceHtml, $this->_helper->currency($price)); $this->assertEquals($priceHtml, $this->_helper->formatCurrency($price)); }
/** * Get the total amount to be redeemed from gift cards, formatted as currency. * @return string */ protected function _getAppliedGiftCardTotal() { $appliedTotal = 0.0; foreach ($this->_giftCardContainer->getUnredeemedGiftCards() as $card) { $appliedTotal += $card->getAmountToRedeem(); } return $this->_coreHelper->currency($appliedTotal, true, false); }