Exemplo n.º 1
0
 public function __construct(CurrencyInterface $fromCurrency, CurrencyInterface $toCurrency, $multiplier)
 {
     parent::__construct($fromCurrency, $toCurrency);
     $this->multiplier = $multiplier;
 }
Exemplo n.º 2
0
 public function testCurrencyCodesMatch()
 {
     $this->assertTrue(CurrencyPair::currencyCodesMatch($this->usd, $this->usd));
     $this->assertFalse(CurrencyPair::currencyCodesMatch($this->usd, $this->gbp));
 }