Example #1
0
 public function testConstruct($value, $currencyCode, $expectedValue, $expectedCurrencyCode)
 {
     $this->if($price = new TestedPrice($value, $currencyCode))->phpFloat($price->getValue())->isIdenticalTo($expectedValue)->phpString($price->getCurrency())->isIdenticalTo($expectedCurrencyCode);
 }