예제 #1
0
 public function testFormatPrice()
 {
     $amount = '120';
     $includeContainer = false;
     $result = '10grn.';
     $this->priceCurrency->expects($this->once())->method('format')->with($amount, $includeContainer)->will($this->returnValue($result));
     $this->assertEquals($result, $this->model->formatPrice($amount, $includeContainer));
 }
예제 #2
0
 public function testFormatPrice()
 {
     $price = 10.0;
     $priceHtml = '<span class="price">$10.00</span>';
     $this->assertEquals($priceHtml, $this->_helper->formatPrice($price));
 }