Esempio n. 1
0
 /**
  * @expectedException \SebastianBergmann\Money\CurrencyMismatchException
  */
 public function testCurrencyMismatchException()
 {
     $currencyMockEUR = $this->getMock('Elcodi\\Component\\Currency\\Entity\\Currency', ['getIso']);
     $currencyMockEUR->expects($this->any())->method('getIso')->will($this->returnValue('EUR'));
     $fiftyEuros = Money::create(50, $currencyMockEUR);
     $this->assertFalse($this->oneHundredDollars->equals($fiftyEuros));
 }