/** * Setup */ public function setup() { $this->currencyMockUSD = $this->getMock('Elcodi\\Component\\Currency\\Entity\\Currency', ['getIso']); $this->currencyMockUSD->expects($this->any())->method('getIso')->will($this->returnValue('USD')); $this->oneHundredDollars = Money::create(100, $this->currencyMockUSD); }