/**
  * Price format the passed in amount parameter.
  *
  * @param  string
  * @return string formatted amount
  */
 public function formatPrice($amount)
 {
     return $this->_coreHelper->formatPrice($amount);
 }
示例#2
0
 public function testFormatPrice()
 {
     $price = 10.0;
     $priceHtml = '<span class="price">$10.00</span>';
     $this->assertEquals($priceHtml, $this->_helper->formatPrice($price));
 }
 /**
  * Get the amount formatted as currency
  * @param  float $amount
  * @return string
  */
 protected function _formatPrice($amount)
 {
     return $this->_mageCoreHelper->formatPrice($amount);
 }