/**
  * Test using price as null or zero
  *
  * @dataProvider pricesNullPrices
  *
  * @param float    $fPrice          price
  * @param stdClass $oCurrency       currency object
  * @param string   $sExpectedOutput expected output
  */
 public function testFormatPrice_badPriceOrCurrency($fPrice, $oCurrency, $sExpectedOutput)
 {
     $oSmarty = new Smarty();
     $aParams['price'] = $fPrice;
     $aParams['currency'] = $oCurrency;
     // we utf8 decode here to make the test more robust against shop settings
     $this->assertEquals(utf8_decode($sExpectedOutput), utf8_decode(smarty_function_oxprice($aParams, $oSmarty)));
 }
 /**
  * Test using price as null or zero
  *
  * @dataProvider pricesNullPrices
  *
  * @param float      $fPrice          price
  * @param stdClass   $oCurrency       currency object
  * @param string     $sExpectedOutput expected output
  * @param array      $aCurrencies     The currencies we want to set
  */
 public function testFormatPrice_badPriceOrCurrency($fPrice, $oCurrency, $sExpectedOutput, $aCurrencies = array())
 {
     $this->_setCurrencies($aCurrencies);
     $oSmarty = new Smarty();
     $aParams['price'] = $fPrice;
     $aParams['currency'] = $oCurrency;
     $this->assertEquals($sExpectedOutput, smarty_function_oxprice($aParams, $oSmarty));
 }