/** * @covers Sonata\Component\Currency\CurrencyDetector::getCurrency */ public function testGetCurrency() { $this->assertEquals($this->currency->getLabel(), $this->object->getCurrency()->getLabel()); }
public function __construct(ProductInterface $product, CurrencyInterface $currency) { parent::__construct(sprintf("Product '%s' is not available for currency '%s'", $product->getName(), $currency->getLabel())); }